delta_t: Effect Size: Delta Total Variance

Description Usage Arguments Details Examples

Description

This function computes an effect size for the treatment effect. The paper defines delta t in formula X

Usage

1

Arguments

formula

lme4 arugments y ~ x + (1|litter)

data

Details

Note that, in some instances, the variance explained can be negative. In this case, there is more betweem-litter variance after the inclusion of the treatment effect in the model. This is cannot be interpreted directly, but does indicate that the treatment effect did not explain any of the between-litter variance

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# 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)


delta_t(y ~ treat + (1|litter), data = my_data)

donaldRwilliams/litterEffects documentation built on May 30, 2019, 9:42 p.m.