Assignment 5 –
Multivariable linear models
Case 1 - Data
In this example, you have a continuous x-variable (e.g., road density [roads/sq. km]) and one categorical x-variable (Hardwood forest vs. Pine forest) and you are looking at their effect on squirrel density (squirrels / hectare). In this system, there is an interaction between road density and forest type.
1.
Write a linear (statistical) model that describes
the system; be sure you specify what each ‘x’ represents.
2.
What do the various β’s mean in this model?
3. Run the full model in R. Report whether or not the interaction is significant of not (including p-value)
4. Analyze data from the two forest types separately and describe the results using the standard sentences.
Bonus: Note that the sq. dens is higher in pine at low road density and lower in pine at high road density. At what road density is squirrel density the same between both forest types?
Case 2 - Data
In this example you have two categorical factors (e.g., Sex
and Treatment) and each factor has two levels (male + female, control (placebo)
+ hormone injection). The dependent variable might be something like adult size.
In this system, there is an interaction between sex and treatment
1.
Write a linear (statistical) model that describes
the system; be sure you specify what each ‘x’ represents.
2.
What do the various β’s mean in this model?
3.
Run the full model in R. Report whether or not
the interaction is significant of not (including p-value)
Case 3 - Data
In this example you have two continuous variables (e.g., Elevation - meters; and Latitude - km). The dependent variable is lotus flower size. In this system, there is an interaction between elevation and latitude.
1.
Write a linear (statistical) model that describes
the system; be sure you specify what each ‘x’ represents.
2.
What do the various β’s mean in this model?
3.
Write example sentences that you might include
in a manuscript for publication that describes the observed results.