ComeçarComece de graça

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 exercício faz parte do curso

Experimental Design in R

Ver curso

Instruções do exercício

  • Calculate lambda where t = 3, k = 2, and r = 2. Does a BIBD exist here?
  • Create weightlift_model and examine the results. The experiment evaluates the outcome bmxarmc, where the treatment is stored in weightlift_treat and subjects are blocked by ridreth1.

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# Calculate lambda
___

# Create weightlift_model & examine results
___
___
Editar e executar o código