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.
Este ejercicio forma parte del curso
Experimental Design in R
Instrucciones del ejercicio
- Calculate lambda where
t= 3,k= 2, andr= 2. Does a BIBD exist here? - Create
weightlift_modeland examine the results. The experiment evaluates the outcomebmxarmc, where the treatment is stored inweightlift_treatand subjects are blocked byridreth1.
Ejercicio interactivo práctico
Prueba este ejercicio y completa el código de muestra.
# Calculate lambda
___
# Create weightlift_model & examine results
___
___