perform_SEM_model0: Run VT-SEM model 0

Description Arguments Value Author(s) References Examples

View source: R/VT_SEM_functions.R

Description

Run VT-SEM model 0 which assumes there is neither AMnor latent polygenic genetic score(LGS)

Arguments

dat

Data frame which includes offsprings' phenotype value (Yo), haplotypic transmitted PGS from parents (Tm,Tp), and haplotypic non-transmitted PGS of parents (NTm,NTp)

NTmlabel,Tmlabel,NTplabel,Tplabel,Yolabel

Column names of NTm,Tm,NTp,Tp, and Yo.

max.cores

Assign the number of cores to run OpenMx.

Value

AFE.Fit

OpenMx objective which includes fitted results

result_summary

Summaries of fitted values of model 0

Author(s)

Yongkang Kim yongkangkim87@gmail.com, Jared Balbona, and Matthew C Keller

References

Kong, Augustine, et al. "The nature of nurture: Effects of parental genotypes." Science 359.6374 (2018): 424-428.

Examples

1
2
3
4
data(equil_exam)
model0=perform_SEM_model0(equil_exam,"NTMO","TMO","NTPO","TPO","Y")
summary(model0$AFE.Fit)
model0$result_summary

yoki5348/VT_SEM documentation built on July 24, 2021, 5:10 p.m.