
Figure 1
Mediation Diagram.
Table 1
Variables in data set “Weight_Behavior”.
| Variable Name | Description |
|---|---|
| bmi | Body mass index |
| age | Age at survey |
| sex | Male or female |
| race | African American, Caucasian, Indian, Mixed or Other |
| numpeople | Number of people in family |
| car | Number of cars in family |
| gotosch | Four levels of methods to go to school |
| snack | Eat a snack in a day or not |
| tvhours | Number of hours watching TV per week |
| cmpthours | Number of hours using computer per week |
| cellhours | Number of hours playing with cell phones per week |
| sports | In a sport team or not |
| exercise | Number of hours of exercises per week |
| sweat | Number of hours of sweat-producing activities per week |
| overweigh | The child is overweight or not |

Figure 2
Output from summary (mma).

Figure 3
Output from plot(mma) on “sports”.

Figure 4
Output from plot(mma) on “exercise”.
