commonfactor: Run common factor model on genetic covariance and sampling...

View source: R/commonfactor.R

commonfactorR Documentation

Run common factor model on genetic covariance and sampling covariance matrix

Description

Function to run a common factor model based on output from multivariable LDSC

Usage

commonfactor(covstruc,estimation="DWLS", ...)

Arguments

covstruc

Output from the multivariable LDSC function of Genomic SEM

estimation

Options are either Diagonally Weighted Least Squares ("DWLS"; the default) or Maximum Likelihood ("ML")

Value

The function estimates a common factor model, along with model fit indices, using output from GenomicSEM LDSC. The function returns a list with 2 named entries

modelfit

The model fit results (e.g., model chi-square, AIC, CFI) from the specified model.

results

Parameter estimates and sandwich corrected standard errors from the specified model.


MichelNivard/GenomicSEM documentation built on Dec. 24, 2024, 3:23 a.m.