Skip to contents

Extracts coefficients from an existing mr.mash fit or fits mr.mash from `X` and `Y`.

Usage

mrmash_weights(mrmash_fit = NULL, X = NULL, Y = NULL, ...)

Arguments

mrmash_fit

Optional fitted mr.mash object.

X

Genotype matrix. Required when `mrmash_fit` is NULL.

Y

Phenotype matrix. Required when `mrmash_fit` is NULL.

...

Additional arguments passed to `mrmash_wrapper()` when fitting.

Value

Matrix of variant weights.