50% off: Unlimited data and AI learning.
The Learning Leader's Guide to AI Literacy

mcsm (version 1.0)

Functions for Monte Carlo Methods with R

Description

mcsm contains a collection of functions that allows the reenactment of the R programs used in the book EnteR Monte Carlo Methods without further programming. Programs being available as well, they can be modified by the user to conduct one's own simulations.

Copy Link

Version

Install

install.packages('mcsm')

Monthly Downloads

20

Version

1.0

License

GPL (>= 2)

Maintainer

Christian P Robert

Last Published

April 28th, 2009

Functions in mcsm (1.0)

EMcenso

EM paths for a censored normal model
SAmix

Graphical representation of the simulated annealing sequence for the mixture posterior
jamestein

Monte Carlo plots of the risks of James-Stein estimators
kscheck

Convergence assessment for the pump failure data
hastings

Reproduction of Hastings' experiment
maximple

Graphical representation of a toy example of simulated annealing
gibbsmix

Implementation of a Gibbs sampler on a mixture posterior
test4

Replicate Poisson generator
Energy

Energy intake
mump

Illustration of Gelman and Rubin's diagnostic on the pump failure data
challenge

Slice sampler analysis of the challenger dataset
logima

Logistic analysis of the Pima.tr dataset with control variates
test1

Poor chi-square generator
test2

Generic chi-square generator
challenger

O-ring failures against temperature for shuttle launches
reparareff

Reparameterized version of the one-way random effect model
betagen

Plot explaining accept-reject on a Beta(2.7,6.3) target
dyadic

A dyadic antithetic improvement for a toy problem
sqar

Illustration of some of coda's criterions on the noisy squared AR model
mhmix

Implement two Metropolis-Hastings algorithms on a mixture posterior
Braking

Quadratic regression on the car braking dataset
sqaradap

Illustration of the dangers of doing adaptive MCMC on a noisy squared AR model
rmunorm

Random generator for the multivariate normal distribution
mochoice

An MCMC model choice illustration for the linear model
adapump

Illustration of the danger of adaptive MCMC for the pump failure data
dmunorm

Density function of the multivariate normal distribution
pimax

Monte Carlo approximation of a probit posterior marginal
pimamh

Langevin MCMC algorithm for the probit posterior
randomeff

Gibbs sampler for a one-way random effect model
normbyde

Compare two double-exponentials approximations to a normal distribution
test3

Approximate Poisson generator
rdirichlet

Dirichlet generator
randogibs

First illustrations of coda's output for the one-way random effect model
randogit

MCEM resolution for a probit maximum likelihood