umxSummarizeTwinData | R Documentation |
Produce a summary of wide-format twin data, showing the number of individuals, the mean and SD for each trait, and the correlation for each twin-type.
Set MZ and DZ to summarize the two-group case.
umxSummarizeTwinData(
data = NULL,
selVars = NULL,
sep = "_T",
zyg = "zygosity",
age = "age",
MZ = NULL,
DZ = NULL,
MZFF = "MZFF",
DZFF = "DZFF",
MZMM = "MZMM",
DZMM = "DZMM",
DZOS = "DZOS",
digits = 2,
report = c("markdown", "html")
)
data |
The twin data. |
selVars |
Collection of variables to report on, e.g. c("wt", "ht"). |
sep |
The separator string that will turn a variable name into a twin variable name, default= "_T" for wt_T1 and wt_T2. |
zyg |
The zygosity column in the dataset (default "zygosity"). |
age |
The age column in the dataset (default "age") |
MZ |
Set level in zyg corresponding to MZ for two group case (defaults to using 5-group case). |
DZ |
Set level in zyg corresponding to DZ for two group case (defaults to using 5-group case). |
MZFF |
The level of zyg corresponding to MZ FF pairs: default= "MZFF". |
DZFF |
The level of zyg corresponding to DZ FF pairs: default= "DZFF". |
MZMM |
The level of zyg corresponding to MZ MM pairs: default= "MZMM". |
DZMM |
The level of zyg corresponding to DZ MM pairs: default= "DZMM". |
DZOS |
The level of zyg corresponding to DZ OS pairs: default= "DZOS". |
digits |
Rounding precision of the report (default 2). |
report |
What to return (default = 'markdown'). Use 'html' to open a web table. |
formatted table, e.g. in markdown.
umxAPA()
Other Twin Modeling Functions:
power.ACE.test()
,
umx
,
umxACE()
,
umxACEcov()
,
umxACEv()
,
umxCP()
,
umxDiffMZ()
,
umxDiscTwin()
,
umxDoC()
,
umxDoCp()
,
umxGxE()
,
umxGxE_window()
,
umxGxEbiv()
,
umxIP()
,
umxMRDoC()
,
umxReduce()
,
umxReduceACE()
,
umxReduceGxE()
,
umxRotate.MxModelCP()
,
umxSexLim()
,
umxSimplex()
,
umxSummaryACE()
,
umxSummaryACEv()
,
umxSummaryDoC()
,
umxSummaryGxEbiv()
,
umxSummarySexLim()
,
umxSummarySimplex()
,
umxTwinMaker()
data(twinData)
umxSummarizeTwinData(twinData, sep = "", selVars = c("wt", "ht"))
MZs = c("MZMM", "MZFF"); DZs = c("DZFF","DZMM", "DZOS")
umxSummarizeTwinData(twinData, sep = "", selVars = c("wt", "ht"), MZ = MZs, DZ = DZs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.