Logistic Regression
by VickyRN Asst. Admin
11,561 Views  0 Comments
 2 Published Mar 23, '09regression analysis is used to predict a continuous dependent variable from a number of independent variables. if the dependent variable is dichotomous, then logistic regression, rather than linear regression, should be used. logistic regression (sometimes called the logistic model or logit model) analyzes the relationship between multiple independent variables and a dependent variable and estimates the probability of occurrence of an event by fitting data to a logistic curve. logistic regression allows the researcher to test models to predict categorical outcomes with two or more categories, such as male/ female, young/ old, presence/ absence of a condition, or success/ failure.
there can only be a single dependent variable with logistic regression. the dependent variable is usually dichotomous, that is, the dependent variable can take the value 1 with a probability of success 0, or the value 0 with probability of failure 1. this type of variable is called a binary variable. the independent variables can be either categorical or continuous, or a mix of both in one model. since logistic regression calculates the probability or success over the probability of failure, the impact of predictor variables is usually explained in terms of odds ratios. in this way, logistic regression estimates the odds of a certain event occurring.
logistic regression uses maximum likelihood estimation to estimate the parameters most likely to have generated the observed data. it is based on the assumption that the underlying relationships among variables are an sshaped probability curve. it transforms the probability of an event occurring into its odds. odds reflect the ratio of two probabilities: the probability of an event occurring, to the probability that it will not occur.
logistic regression is part of a category of statistical models called generalized linear models. it is a complex model used for prediction of the probability of occurrence of an event by fitting data to a logistic curve. it makes use of several predictor variables that may be either numerical or categorical. for example, the probability that a person has a heart attack within a specified time period might be predicted from knowledge of the person's age, sex and body mass index. logistic regression is used extensively in the medical and social sciences as well as marketing applications such as prediction of a customer's propensity to purchase a product.
there are binary logistic and multinomial logistic types. for binary logistic regression, this response variable can have only two categories. for multinomial logistic regression, there may be two or more categories, usually more. it is important to be careful to specify the desired reference category, which should be meaningful. binomial logistic regression by default predicts the higher of the two categories of the dependent (usually 1), using the lower (usually 0) as the reference category. multinomial logistic regression by default predicts all categories of the dependent except the highest, which is used as a reference category.
the goal of logistic regression is to correctly predict the category of outcome for individual cases using the most concise model possible. to accomplish this goal, a model is created that includes all predictor variables that are useful in predicting the response variable. several different options are available during model creation. variables can be entered into the model in the order specified by the researcher or logistic regression can test the fit of the model after each coefficient is added or deleted, called stepwise regression.
research examples
as an example of logistic regression, consider a study whose goal is to model the response to a drug as a function of the dose of the drug administered. the target (dependent) variable has a value 1 if the patient is successfully treated by the drug and 0 if the treatment is not successful.
logistic regression is often used in epidemiological studies where the result of the analysis is the probability of developing cancer after controlling for other associated risks. logistic regression also provides knowledge of the relationships and strengths among the variables (e.g., smoking 10 packs a day places an individual at a higher risk for developing cancer than working in an asbestos mine).
predicting the 10year risk of death from heart disease based on the predictor variables of age, sex, and cholesterol levels. in this model, increasing age is associated with an increasing risk of death from heart disease, female sex is associated with a decreased risk of death from heart disease, and increasing cholesterol is associated with an increasing risk of death.
asumptions of logistic regression:
true conditional probabilities are a logistic function of the independent variables.
no important variables are omitted.
no outliers.
independent variables measured without error.
observations are independent (no singularity).
independent variables are not linear combinations of each other.
multicollinearity – no redundancy among the independent variables.
large enough sample
statistics
omnibus tests of model coefficients: “goodness of fit” test – significance value should be less than .05
the hosmerlemshow statistic evaluates the goodnessoffit. poor fit is indicated by a significance value less than .05. to support the model, a significance value greater than .05 is needed. thus, the test statistic is a chisquare statistic with a desirable outcome of nonsignificance, indicating that the model prediction does not significantly differ from the observed.
a wald test is used to test the statistical significance of each coefficient (b) in the model. a wald test calculates a z statistic. this z value is then squared, yielding a wald statistic with a chisquare distribution.
the likelihoodratio test uses the ratio of the maximized value of the likelihood function for the full model (l1) over the maximized value of the likelihood function for the simpler model (l0). this log transformation of the likelihood functions yields a chisquared statistic.
effect size – cox & snell r square and nagelkerke r square: pseudo r square statistics.
research information to report:
assumptions. odds ratio, confidence interval. independent variables, dependent variable. chisquare value, probability, significance. sample number. cox and snell r square, nagelkerke r squared values. statistical significance.
presenting the results from logistic regression (pallant, 2007, p. 178)
direct logistic regression was performed to assess the impact of a number of factors on the likelihood that respondents would report that they had a problem with their sleep. the model contained five independent variables (sex, age, problems getting to sleep, problems staying asleep and hours of sleep per weeknight). the full model containing all predictors was statistically significant, x2 (5, n = 241) = 76.02, p < .001, indicating that the model was able to distinguish between respondents who reported and did not report a sleep problem. the model as a whole explained between 27.1% (cox and snell r square) and 36.3% (nagelkerke r squared) of the variance in sleep status, and correctly classified 75.1% of cases. only three of the independent variables made a unique statistically significant contribution to the model (hours sleep per night, problems getting to sleep, and problems staying asleep). the strongest predictor of reporting a sleep problem was difficulty staying asleep, recording an odds ratio of 7.27. this indicated that respondents who had difficulty staying asleep were over 7 times more likely to report a sleep problem than those who did not have difficulty staying asleep, controlling for all other factors in the model. the odds ratio of .64 for hours sleep per night was less than 1, indicating that for every additional hour of sleep per night respondents were .64 times less likely to report having a sleep problem, controlling for other factors in the model.
references
pallant, j. (2007). spss survival manual. new york: mcgrawhill education.
polit, d. f., & beck, c. t. (2008). nursing research: generating and assessing evidence for nursing practice (8th ed.). philadelphia: wolters kluwer health.
http://userwww.sfsu.edu/~efc/classes...ogisticreg.htm
http://www.ats.ucla.edu/stat/stata/w.../statalog3.htmAtomicWoman and sleepyRN2 like this. Read more articles from VickyRN

About VickyRN
VickyRN joined Mar '01  from 'Under the shadow of His wings...'. VickyRN has '16' year(s) of experience and specializes in 'Gerontological, cardiac, medsurg, peds'. Posts: 12,043 Likes: 6,391; Learn more about VickyRN by visiting their allnursesPage
Find Similar Topics