NHANES BIBD
Let's jump back into the NHANES data and pretend we have access to NHANES patients ages 18-45. Blocking the adults by race, stored in NHANES as ridreth1
, we prescribe to our groups either no particular upper body weightlifting regimen, a weightlifting regimen, or a weightlifting regimen plus a prescribed daily vitamin supplement. This information is stored in a variable called weightlift_treat
.
Those funding the study decide they want it to be a BIBD where only 2 treatments appear in each block. The outcome, arm circumference, is stored as bmxarmc
. The nhanes_final
data is loaded for you.
This exercise is part of the course
Experimental Design in R
Exercise instructions
- Calculate lambda where
t
= 3,k
= 2, andr
= 2. Does a BIBD exist here? - Create
weightlift_model
and examine the results. The experiment evaluates the outcomebmxarmc
, where the treatment is stored inweightlift_treat
and subjects are blocked byridreth1
.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Calculate lambda
___
# Create weightlift_model & examine results
___
___