enrich: Estimate enrichment of model parameter for a user specified...

View source: R/enrich.R

enrichR Documentation

Estimate enrichment of model parameter for a user specified model

Description

Function to take output from multivariable S-LDSC and estimate enrichment of model parameter for user specified model

Usage

enrich(s_covstruc, model = "",params,fix= "regressions",std.lv=FALSE,rm_flank=TRUE,tau=FALSE,base=TRUE,toler=NULL,fixparam=NULL, ...)

Arguments

s_covstruc

Output from the multivariable S-LDSC function of Genomic SEM (s_ldsc)

model

Model to be specified using lavaan notation

params

Parameters of interest to be examined for enrichment (e.g., factor variances).

fix

What components of the model should be fixed for follow-up enrichment models. Default = "regressions", which will fix all regression parameters.

std.lv

Optional argument to denote whether all latent variables are standardized using unit variance identification (default = FALSE)

rm_flank

Optional argument to denote whether flanking window annotations should automatically be removed from output (default = TRUE)

tau

Optional argument to denote whether the user wants to use the tau genetic covariance matrices, as opposed to the default zero-order matrices, for estimation of enrichment (default = FALSE)

base

Optional argument to denote whether the user wants to include the full model output from the genome-wide (i.e., baseline) matrix (default = TRUE)

toler

Optional argument to manually set tolerance for matrix inverison.

fixparam

Optional argument to manually fix paramters when estimating the model within annotations

Value

Function to take output from multivariable S-LDSC and estimate enrichment of model parameter for user specified model


MichelNivard/GenomicSEM documentation built on June 15, 2024, 10:41 a.m.