Learn R Programming

weibull4 (version 1.0.0)

proposalfunction: Proposal Distribution for Metropolis-MCMC

Description

This is an internal function of the weibull4 package

Usage

proposalfunction(param)

Arguments

param

Vector containing shape, scale, location, area and SD parameters

Value

Vector containing proposal values for shape, scale, location, area and SD

References

https://theoreticalecology.wordpress.com/2010/09/17/metropolis-hastings-mcmc-in-r/

Examples

Run this code
# NOT RUN {
function (param)
{
    return(rnorm(5, mean = param, sd = param * 0.015))
  }
# }

Run the code above in your browser using DataLab