Description Usage Arguments Examples
This function computes ICC for litter. This is the residual variance explained by litter
1 |
formula |
lme4 arugments y ~ x + (1|litter) |
data |
1 2 3 4 5 6 7 8 9 10 11 12 | # specify values
b_0 <- 5
b_treat <- 2
icc <- 0.5
v_overall <- 10
n_litters <- 12
pups_litter <- 4
my_data <- data_generator(b_0 = b_0, b_treat = b_treat,
icc = icc, v_overall = v_overall,
n_litters = n_litters, pups_litter = pups_litter)
litter_icc(y ~ treat + (1|litter), data = my_data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.