Learn R Programming

mcsm (version 1.0)

Braking: Quadratic regression on the car braking dataset

Description

This function uses MCMC to analyse the car braking dataset cars via a quadratic regression model. The underlying MCMC algorithm is an independent Metropolis-Hastings algorithm centered at the MLE.

Usage

Braking(nsim = 10^3)

Arguments

nsim
Number of iterations in the MCMC algorithm

Value

Returns a plot of some simulated regression lines along with their average and the original data.

References

Chapter 3 of EnteR Monte Carlo Statistical Methods

Examples

Run this code
Braking(10^4)

Run the code above in your browser using DataLab