contrast2comp_dev | R Documentation |
Convert contrast to short-form comp, convert comp to contrast (DEV)
contrast2comp_dev(contrast_names, verbose = FALSE, ...)
This method is developmental, intended to provide a vectorized approach to improve speed.
contrast_names1 <- c("(A_c-B_c)-(A_d-B_d)",
"A_c-B_c",
"GroupA-GroupB",
"((A_c_J-B_c_J)-(A_d_J-B_d_J))-((A_c_W-B_c_W)-(A_d_W-B_d_W))")
contrast2comp_dev(contrast_names1)
# Note: this function fails when contrasts are not balanced
contrast2comp_dev(c("(A_c-B_c)-(A_d-C_d)"), verbose=TRUE)
contrast2comp(c("(A_c-B_c)-(A_d-C_d)"), verbose=TRUE)
contrast2comp_dev(c(contrast_names1[1:2], "(A_c-B_c)-(A_d-C_d)"), verbose=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.