View source: R/analysis_functions.R
generateSamples | R Documentation |
Generate samples from the posterior distribution.
generateSamples(fit, M = 10000)
fit |
A fitted case-crossover model (obtained via 'fitModel(model)'). |
M |
Number of replicates to draw for the posterior (to approximate it, the more the better). |
A list of length three with data.frames containing samples from the posterior distribution of beta, z and theta, respectively.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.