Learn R Programming

umx (version 1.4.0)

umx_make_TwinData: umx_make_TwinData

Description

Makes MZ and DZ twin data, optionally moderated.

Usage

umx_make_TwinData(nMZpairs, nDZpairs, a = c(avg = 0.5, min = 0, max = 1), c, e)

Arguments

nMZpairs
Number of MZ pairs to simulate
nDZpairs
Number of DZ pairs to simulate
a
value for a, defaults to an example of moderation: c(avg=.5, min=0, max=1)
c
value for c
e
value for e

Value

- list of mzData and dzData data.frames

Details

You supply the number of pairs of each zygosity that wish to simulate (nMZpairs, nDZpairs), along with the values of a, c,and e. a can take a list of values which if specified will act like a moderated heritability, with average value a[1], and swinging down to a[2 and up to a[3] across 4-SDs of the moderator.

References

- https://github.com/tbates/umx, https://tbates.github.io

See Also

Other Twin Modeling Functions: plot.MxModel, umxACESexLim, umxACEcov, umxACE, umxCF_SexLim, umxCP, umxGxE_window, umxGxE, umxIP, umxPlotACEcov, umxPlotCP, umxPlotGxE, umxPlotIP, umxSummaryACEcov, umxSummaryACE, umxSummaryCP, umxSummaryGxE, umxSummaryIP, umx

Examples

Run this code
str(umx_make_TwinData(100,100, .5, .3, .4))

Run the code above in your browser using DataLab