Skip to contents

Extracts coefficients from an existing SuSiE-inf-RSS fit or fits susieR::susie_rss() with unmappable_effects = "inf".

Usage

susie_inf_rss_weights(
  stat,
  LD,
  susie_inf_rss_fit = NULL,
  retain_fit = TRUE,
  method_args = list()
)

Arguments

stat

List with components z (z-scores), n (sample sizes).

LD

LD correlation matrix.

susie_inf_rss_fit

Optional pre-fitted SuSiE-inf-RSS object.

retain_fit

If TRUE, stores the fitted object as an attribute.

method_args

Named list of additional arguments passed to susieR::susie_rss(). Use this instead of ... to avoid partial matching of short argument names (e.g. L) to the LD parameter.

Value

Numeric vector of variant weights.