mcmc.sampler | R Documentation |
Function for fitting sBFAC model via MCMC methods.
mcmc.sampler(facfit, Y, X, w0, g0, mcmc, thinstep)
facfit |
MAP estimates of sBFAC used to initialize MCMC algorithm. |
Y |
Expression data in samples by features format |
X |
Design matrix from model.matrix function which defines how covariates are included into sBFAC. |
w0 |
Controls sparseness in features, minimum value should be 0.01 for non-informative priors. |
g0 |
Decreasing this regularize regression coefficients, i.e., g0=1000 provides non-informative prior == Classical estimates |
mcmc |
Number of MCMC samples. Default is 20000 but can be increased to improve convergence. |
thinstep |
Number of iterations to thin to remove autocorrelation between samples. |
Function for fitting sBFAC model via MCMC methods.
scores.store |
This is an array of qxNxmcmc containing scores for the q latent variables on N obaservations over mcmc samples. |
loadings.store |
This is an array of pxqxmcmc containing loadings for the p genes/features on q latent variables over mcmc samples. |
beta.store |
This is an array of qxLxmcmc containing regression coefficients of L covariates on q latent variables over mcmc samples. |
sigma.store |
This is an matrix of pxmcmc containing residual variablity of each feature. |
s2.store |
This is an matrix of qxmcmc containing residual variablity of each latent variable. |
Gift Nyamundanda, Katie Eason, Pawan Poudel and Anguraj Sadanandam.
Nyamundanda et al (2015). A next generation tool enables identification of functional cancer subtypes with associated biological phenotypes.
## help(mcmc.sampler)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.