Description Usage Arguments See Also Examples
View source: R/DBDA2E-utilities.R
Plot posterior distribution of a given parameter.
1 2 3 4 5 6 |
paramSampleVec |
A vector of sample associated with a parameter estimated by MCMC. |
best.robust_t_test
,stan_model
,HDIofMCMC
1 2 3 4 5 6 7 8 9 | ## Not Run
stanFit <- best.robust_t_test(...) ## A stanfit object
codaFit <- stanfit2mcmc.list(stanFit) ## convert stanfit object to coda object
plotPost(codaFit[,'mu[1]'],"mean",xlab=expression(mu[tumor]), main='TERT')
plotPost(codaFit[,'mu_diff'][[1]],"mean",xlab=expression(mu[tumor]), main='TERT')
plotPost(codaFit[,'mu_diff'],"mean",xlab=expression(mu[tumor]), main='TERT')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.