Skip to contents

Extracts coefficients from an existing SuSiE fit or fits `susieR::susie()` from `X` and `y` before extracting weights.

Usage

susieWeights(X = NULL, y = NULL, susieFit = NULL, retainFit = FALSE, ...)

Arguments

X

Genotype matrix. Required when `susieFit` is NULL.

y

Phenotype vector. Required when `susieFit` is NULL.

susieFit

Optional fitted SuSiE object.

retainFit

If TRUE, stores the fitted object as an attribute on the returned weights.

...

Additional arguments passed to `susieR::susie()` when fitting.

Value

Numeric vector of variant weights.