
Parametric GWAS mapping
param_gwas.RdMaps quantile-level GWAS results into effects on user-specified
parametric system parameters via a weight matrix W.
Arguments
- stage1
Output list from
quantile_gwas().- transform
One of:
"custom_W"– supply a weight matrixWintransform_args."two_normal"– construct weights for a two-component normal mixture.
- transform_args
Arguments for the chosen transform.
- se_mode
Standard error mode:
"diagonal"– assume independence across taus (fast)."plugin_cor"– plugin correlation with near-PD repair."dwls"– diagonal weighted least squares (Q test calibrated).
- plugin_R
Optional T x T correlation matrix for
"plugin_cor".
Value
A list with the following elements:
WWeight matrix used in the parametric mapping.
AMapping matrix (tau-by-parameter).
paramsEstimated parameter values.
SE_paramsDelta-method standard errors of parameter estimates.
QVector of Q statistics per SNP (if computed).
dfDegrees of freedom for Q statistic.