Learn R Programming

BaPreStoPro (version 0.1)

proposalRatio: Proposal ratio of lognormal proposal density

Description

Calculation of proposal ratio, see also proposal.

Usage

proposalRatio(parOld, parNew, propSd)

Arguments

parOld
the parameter from the last iteration step
parNew
drawn candidate
propSd
proposal standard deviation

Examples

Run this code
cand <- proposal(1, 0.01)
proposalRatio(1, cand, 0.01)

Run the code above in your browser using DataLab