inst/shiny-examples/scdhlm/code-chunks/es-RML-TR.R

# Calculate effect size with g_mlm()
p_const <- {user_pconstant}
r_const <- c({user_rconst_base}, {user_rconst_trt}, 
             {user_rconst_cor}, {user_rconst_var}, 1L) # specify whether using random effects, cor struct, var struct, and level-1 errors
r_const <- {user_rconstant}

ES_RML <- g_mlm(fit_RML, p_const = p_const, r_const = r_const, infotype = "expected")
summary(ES_RML)
jepusto/scdhlm documentation built on Feb. 27, 2024, 4:45 p.m.