univ_descriptives: Compute the univariate twin descriptives

get_univ_descriptivesR Documentation

Compute the univariate twin descriptives

Description

Compute number of valid observations, means, SDs and cross-twin correlations for MZ and DZ twins. Can be used for any data on groups.

Usage

get_univ_descriptives(dat, zyg, vars)

Arguments

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')


IvanVoronin/TwinAnalysis documentation built on July 24, 2024, 9:36 p.m.