Description Usage Arguments Value Author(s) See Also Examples
View source: R/newBASiCS_Chain.R
BASiCS_Chain
creates a BASiCS_Chain
object from pre-computed MCMC chains.
1 | newBASiCS_Chain(parameters)
|
parameters |
List of matrices containing MCMC chains for each model parameter.
. This parameter is only used when spike-in genes are available.
|
An object of class BASiCS_Chain
.
Catalina A. Vallejos cnvallej@uc.cl
Nils Eling eling@ebi.ac.uk
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | Data <- makeExampleBASiCS_Data()
# No regression model
Chain <- BASiCS_MCMC(Data, N = 50, Thin = 5, Burn = 5, Regression = FALSE)
ChainMu <- displayChainBASiCS(Chain, 'mu')
ChainDelta <- displayChainBASiCS(Chain, 'delta')
ChainPhi <- displayChainBASiCS(Chain, 'phi')
ChainS <- displayChainBASiCS(Chain, 's')
ChainNu <- displayChainBASiCS(Chain, 'nu')
ChainTheta <- displayChainBASiCS(Chain, 'theta')
ChainNew <- newBASiCS_Chain(parameters = list(mu = ChainMu,
delta = ChainDelta,
phi = ChainPhi,
s = ChainS,
nu = ChainNu,
theta = ChainTheta))
# No regression model
Chain <- BASiCS_MCMC(Data, N = 50, Thin = 5, Burn = 5, Regression = TRUE)
ChainMu <- displayChainBASiCS(Chain, 'mu')
ChainDelta <- displayChainBASiCS(Chain, 'delta')
ChainPhi <- displayChainBASiCS(Chain, 'phi')
ChainS <- displayChainBASiCS(Chain, 's')
ChainNu <- displayChainBASiCS(Chain, 'nu')
ChainTheta <- displayChainBASiCS(Chain, 'theta')
ChainBeta <- displayChainBASiCS(Chain, 'beta')
ChainSigma2 <- displayChainBASiCS(Chain, 'sigma2')
ChainEpsilon <- displayChainBASiCS(Chain, 'epsilon')
ChainNew <- newBASiCS_Chain(parameters = list(mu = ChainMu,
delta = ChainDelta,
phi = ChainPhi,
s = ChainS,
nu = ChainNu,
theta = ChainTheta,
beta = ChainBeta,
sigma2 = ChainSigma2,
epsilon = ChainEpsilon))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.