generateSamples: Generate samples from the posterior distribution.

View source: R/analysis_functions.R

generateSamplesR Documentation

Generate samples from the posterior distribution.

Description

Generate samples from the posterior distribution.

Usage

generateSamples(fit, M = 10000)

Arguments

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).

Value

A list of length three with data.frames containing samples from the posterior distribution of beta, z and theta, respectively.


samperochkin/ccTraffic documentation built on April 26, 2022, 4:57 p.m.