Learn R Programming

beast (version 1.1)

localProposal: Move 3.b

Description

Implements Move 3.b of the Metropolis-Hastings MCMC sampler.

Usage

localProposal(cutPoints, nTime, mhPropRange, startPoint)

Arguments

cutPoints

Current configuration of change-points.

nTime

Total number of time-points.

mhPropRange

Parameter \(d_2\).

startPoint

Integer, at least equal to 2.

Value

newState

Candidate state of the chain.

propRatio

Proposal ratio.