
Make a 2-group Independent Pathway twin model (Common-factor independent-pathway multivariate model)
The following figure shows the IP model diagrammatically:
umxIP(name = "IP", selDVs, dzData, mzData, suffix = NULL, nFac = 1,
freeLowerA = FALSE, freeLowerC = FALSE, freeLowerE = FALSE,
equateMeans = TRUE, dzAr = 0.5, dzCr = 1, correlatedA = FALSE,
addStd = TRUE, addCI = TRUE, numObsDZ = NULL, numObsMZ = NULL,
autoRun = getOption("umx_auto_run"), optimizer = NULL, sep = NULL)
The name of the model (defaults to "IP")
The variables to include
The DZ dataframe
The MZ dataframe
The suffix for twin 1 and twin 2, often "_T". If set, you can omit suffixes in selDVs, i.e., just "dep" not c("dep_T1", "dep_T2")
How many common factors (default = 1)
Whether to leave the lower triangle of A free (default = F)
Whether to leave the lower triangle of C free (default = F)
Whether to leave the lower triangle of E free (default = F)
Whether to equate the means across twins (defaults to T)
The DZ genetic correlation (defaults to .5, vary to examine assortative mating)
The DZ "C" correlation (defaults to 1: set to .25 to make an ADE model)
Whether factors are allowed to correlate (not implemented yet: FALSE)
Whether to add the algebras to compute a std model (defaults to TRUE)
Whether to add the interval requests for CIs (defaults to TRUE)
= TODO: implement ordinal Number of DZ twins: Set this if you input covariance data
= TODO: implement ordinal Number of MZ twins: Set this if you input covariance data
Whether to mxRun the model (default TRUE: the estimated model will be returned)
optionally set the optimizer (default NULL does nothing)
allowed as a synonym for "suffix"
- mxModel
- plot()
, umxSummary()
work for IP, CP, GxE, SAT, and ACE models.
Other Twin Modeling Functions: plot.MxModel
,
umxACESexLim
,
umxACE_cov_fixed
, umxACEcov
,
umxACEv
, umxACE
,
umxCF_SexLim
, umxCP
,
umxGxE_window
, umxGxE
,
umxPlotACEcov
, umxPlotCP
,
umxPlotGxE
, umxPlotIP
,
umxReduceACE
,
umxSummaryACEcov
,
umxSummaryACEv
,
umxSummaryACE
, umxSummaryCP
,
umxSummaryGxE
, umxSummaryIP
,
umx_long2wide
, umx_wide2long
,
umx
, xmu_twin_check
# NOT RUN {
require(umx)
data(twinData)
mzData <- subset(twinData, zygosity == "MZFF")
dzData <- subset(twinData, zygosity == "DZFF")
selDVs = c("ht", "wt") # These will be expanded into "ht1" "ht2"
m1 = umxIP(selDVs = selDVs, suffix = "", dzData = dzData, mzData = mzData)
# umxSummary(m1)
# }
Run the code above in your browser using DataLab