get_univ_descriptives | R Documentation |
Compute number of valid observations, means, SDs and cross-twin correlations for MZ and DZ twins. Can be used for any data on groups.
get_univ_descriptives(dat, zyg, vars)
dat |
the data.frame with the variables zyg and paste(vars, rep(1:2, each = nv)) |
zyg |
the name of the zygosity variable (character string) |
vars |
the names of the variables to compute the descriptives for. If vars = c('X', 'Y', 'Z'), the function looks for c('X1', 'Y1', 'Z1', 'X2', 'Y2', 'Z2') |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.