Week 6: Linear Regression and Correlation Flashcards
Which commands can be used to explore variables?
<codebook>
<histogram>
<summarize varnames, detail>
</histogram></codebook>
What are the independent and dependent variables in the association between age and executive function?
Age (independent)
Executive function (dependent)
What command is used for linear regression?
<regress>
</regress>
What does the intercept (β0) represent in regression analysis?
The predicted value of the dependent variable when the independent variable is 0
What is the equation for simple linear regression?
y = β0 + β1x
How do you centre a variable around the mean?
<sum varname, meanonly>
<gen varname_cent = varname - r(mean)>
How is the Pearson correlation coefficient calculated?
<correlate> or <pwcorr>
</pwcorr></correlate>
What is the interpretation of a Pearson correlation coefficient of -0.43?
A moderate negative association
What is the formula to calculate the CI for a slope (β1)?
β1 ± 1.96 x SE
Why should the regression equation not be used outside the range of observed data?
Because the relationship outside the range may not be linear
What does the R2 value represent in linear regression?
The proportion of variance in the dependent variable explained by the independent variable
How do you compute a scatterplot?
<twoway(scatter varnames)>
How do you compute a line of best fit?
<twoway(lfit varnames>
How do you combine a scatterplot and line of best fit into one graph?
<twoway(scatter varnames) (lfit varnames)>
Explain what 𝛽0 means in the context of the association between age and executive function
𝛽0 = 29.33
𝛽1 = -0.185
As the constant essentially sets the baseline when age = 0, executive function is 29.33. In other words, 𝛽0 (_const) describes the mean executive function at intercept between x and y, i.e., at the age of 0