Compute sufficient statistics for input to susie_ss
Source: R/susie_rss_utils.R
compute_suff_stat.RdComputes the sufficient statistics \(X'X, X'y, y'y\) and \(n\) after centering (and possibly standardizing) the columns of \(X\) and centering \(y\) to have mean zero. We also store the column means of \(X\) and mean of \(y\).
Examples
data(N2finemapping)
ss <- compute_suff_stat(N2finemapping$X, N2finemapping$Y[, 1])