# Multilevel Modeling

## 11. Multiple Spatial Contexts

### Exercise 5

The goal of this exercise is for the user to understand and become comfortable with model building.

You will be presented with three hypotheses. Using the characters provided, review each hypothesis and create the correct model to test it.

Consider the following, where:
neighborhood is j and individual is i
BMI is y
regression parameters is ß

Characters:
yij
ß0
ß
(Ageij)
(FFj)
(u0j + e0ij)

Hypothesis 1:
Neighborhood variation in BMI is conditional on age.

Answer: yij = ß0 + ß(Ageij) + (u0j + e0ij)

Hypothesis 2:
Neighborhood density of fast food restaurants is associated with individual BMI, conditional on individual age.

Answer: yij = ß0 + ß(Ageij) + ß(FFj) + (u0j + e0ij)

Hypothesis 3:
Neighborhood density of fast food restaurants is associated with individual BMI, but its effect varies by age.

Answer: yij = ß0 + ß(Ageij) + ß(FFj) + ß(FFj)(Ageij) + (u0j + e0ij)

Select the “How did I Do?” button to continue or “Restart Hypothesis 3” to restart or “Show Correct Answers” and “Finish…” to complete the exercise. Once exercise is completed, user can select “Restart” to restart exercise.