An R package to perform the Correlated Pseudo Marginal Method, see paper detailing methodology here
Undertaken as part of the 1 week OxWaSP module: “Statistical Computing and Computational Statistics”
In partnership with Yuxi Jiang, OxWaSP- University of Warwick
This package can be installed as follows:
devtools::install_github("JTT94/cpmmc")
Vignette help can be found as follows:
library(cpmmc)
vignette('cpmmc', package='cpmmc')
Example code:
# Random Effect CPM (specific case inherited from cpmmc class)
rem_cpm <- normal_random_effect_model(data,
theta_0 = theta_0,
u_0 = u_0,
rho = rho
)
# Run models for nsim iterations
rem_cpm <- run_chain(rem_cpm, chain_length = nsim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.