mash_update_data | R Documentation |
This function can update two parts of the mash data. The first one is setting the reference group, so the mash data can be used for commonbaseline analysis. The other one is updating the null correlation matrix.
mash_update_data(mashdata, ref = NULL, V = NULL)
mashdata |
mash data object ontaining the Bhat matrix,
standard errors, V; created using |
ref |
the reference group. It could be a number between 1,..., R, R is number of conditions, or the name of reference group. If there is no reference group, it can be the string 'mean'. |
V |
an R by R matrix / [R x R x N] array of correlation matrix of error correlations |
a updated mash data object
simdata = simple_sims(50,5,1)
data = mash_set_data(simdata$Bhat, simdata$Shat)
mash_update_data(data, 'mean')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.