Compute sufficient statistics for susie.

compute_ss(X, y, standardize = TRUE)

Arguments

X

An n by p matrix of covariates.

y

An n vector.

standardize

Logical flag indicating whether to standardize columns of X to unit variance prior to fitting.

Value

A list of sufficient statistics.

Examples

data(N2finemapping)
#> Warning: data set ‘N2finemapping’ not found
ss = compute_ss(N2finemapping$X, N2finemapping$Y[,1])
#> Error in compute_ss(N2finemapping$X, N2finemapping$Y[, 1]): could not find function "compute_ss"