View source: R/build_run_modify.R
umxRotate.MxModelCP | R Documentation |
Rotate a CP solution.
Should work with rotations provided in libs("GPArotation")
and libs("psych")
, e.g.,
Orthogonal: "varimax", "quartimax", "bentlerT", "equamax", "varimin", "geominT" and "bifactor"
Oblique: "Promax", "promax", "oblimin", "simplimax", "bentlerQ", "geominQ", "biquartimin" and "cluster"
## S3 method for class 'MxModelCP'
umxRotate(
model,
rotation = c("varimax", "promax"),
tryHard = "yes",
freeLoadingsAfter = TRUE,
verbose = TRUE
)
model |
a |
rotation |
name of the rotation. |
tryHard |
Default ("yes") is to tryHard. |
freeLoadingsAfter |
return the model with factor loadings free (default) or fixed in the new locations. |
verbose |
print detail about the rotation |
This works by taking the common-pathways loadings matrix from a solved umxCP()
model, rotating these, placing
them back into the loadings matrix, re-estimating the model with the parameters fixed at this rotation, then return the new model.
Rotated solution.
umxCP()
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()
,
umxSexLim()
,
umxSimplex()
,
umxSummarizeTwinData()
,
umxSummaryACE()
,
umxSummaryACEv()
,
umxSummaryDoC()
,
umxSummaryGxEbiv()
,
umxSummarySexLim()
,
umxSummarySimplex()
,
umxTwinMaker()
## Not run:
# Rotate a CP solution(param)
# Common pathway model rotation
library(umx)
# Fit 3 factor CPM
data(GFF)
selDVs = c("gff", "fc", "qol", "hap", "sat", "AD")
m1 = umxCP(selDVs = selDVs, nFac = 2, data = data, tryHard = "yes")
m2 = umxRotate(m1, rotation = "varimax", tryHard = "yes")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.