Week 7: Logistic Regression and Odds Ratio Flashcards
How do you perform a cross-tabulation with chi-square?
<tab var1 var2, col chi2>
How do you perform a logistic regression?
<logistic outcome_variable explanatory_variable(s)>
Remember categorical variables need to be proceeded with ‘i.’ accordingly <i.cat_var></i.cat_var>
How do you calculate odds ratios directly in Stata?
<tabodds var1 var2, or>
How do you modify existing labels on a variable?
Example:
<label define var_name 0”No”, modify>
<label></label>
How do you formally interpret ORs?
Example:
Being female is associated with a 30% increase in the odds of asthma controlling for age (OR 1.30, 95% CI 1.01, 1.66). The odds of females having asthma are 1.30 times as much as the odds of males having asthma controlling for age.