Week 7: Logistic Regression and Odds Ratio Flashcards

1
Q

How do you perform a cross-tabulation with chi-square?

A

<tab var1 var2, col chi2>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you perform a logistic regression?

A

<logistic outcome_variable explanatory_variable(s)>
Remember categorical variables need to be proceeded with ‘i.’ accordingly <i.cat_var></i.cat_var>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you calculate odds ratios directly in Stata?

A

<tabodds var1 var2, or>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you modify existing labels on a variable?

A

Example:
<label define var_name 0”No”, modify>
<label></label>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you formally interpret ORs?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly