View source: R/analysis_functions.R
getPostProb | R Documentation |
Compute posterior probabilities from a posterior distribution (fitted model).
getPostProb(fit, beta_names, quantiles, M = 10000)
fit |
A fitted case-crossover model (obtained via 'fitModel(model)'). |
beta_names |
Names of beta parameters concerned. |
quantiles |
Quantiles at which to compute the probabilities. |
M |
Number of replicates to draw for the posterior (to approximate the probability, the more the better). |
A vector of (approximate) probabilities.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.