xmu_gsem_extract_snp_path: Extract SNP Effect from a Fitted Model

View source: R/xmuGSEM.R

xmu_gsem_extract_snp_pathR Documentation

Extract SNP Effect from a Fitted Model

Description

Inspects a fitted MxModel (or model summary) and extracts the estimate and standard error for the specified SNP path. Used internally by umxGSEM_GWAS during the fallback/OpenMx standard loop.

Usage

xmu_gsem_extract_snp_path(fit, traits, snpEffect = "SNP_to_F1")

Arguments

fit

A fitted MxModel or its summary object.

traits

Character vector of the base trait names.

snpEffect

Character string indicating the name of the parameter to extract. Defaults to "SNP_to_F1".

Value

A list containing:

  • est: The parameter estimate.

  • se: The standard error of the estimate.

  • se_source: Character indicating the source of the SE (e.g., "openmx").

  • lab: The parameter label.


umx documentation built on Oct. 11, 2026, 5:07 p.m.