get_subset | R Documentation |
Extract specific parameters from MCMC samples
get_subset(object, subset, warn = TRUE, mess = TRUE)
object |
an object of class |
subset |
subset of parameters (columns of the mcmc object) to be used. See
https://nerler.github.io/JointAI/articles/SelectingParameters.html
for key-words of subseting parameters. Besides, |
warn |
logical, should warning messages be displayed? |
mess |
logical, should messages be displayed? |
data(schizow) test = remiod(formula = y6 ~ tx + y0 + y1 + y3, data = schizow, trtvar = 'tx', algorithm = 'jags', method="MAR", ord_cov_dummy = FALSE, n.adapt = 10, n.chains = 1, n.iter = 0, thin = 1, warn = FALSE, seed = 1234) pms = c("beta[2]","alpha[2]","alpha[6]","alpha[9]") mcsub = get_subset(object = test$mc.mar, subset=c(selected_parms = list(pms)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.