Generate Prior Values for the Parameters theta and M

Description

Generate a set of prior values for the parameters theta and M

Usage

1
  generate.prior(number.of.simulations,prior.theta,min.theta,max.theta,prior.M, min.M, max.M)

Arguments

number.of.simulations

total number of simulations

prior.theta

a character string indicating the prior distribution for theta. Possible values are "UNI" (uniform prior) and"LOG" (log-unifomr prior)

min.theta

Minimum value for theta

max.theta

Maximum value for theta

prior.M

a character string indicating the prior distribution for M. Possible values are "UNI" (uniform prior) and"LOG" (log-unifomr prior)

min.M

Minimum value for M

max.M

Maximum value for M

Details

Generate a set of prior values for the parameters theta and M, which will be used by the coalescent-based simulator to simulate artificial data.

Value

a matrix of prior values.

Examples

1
2
3
4
5
## This is to generate a prior distribution of the model parameters.

prior <- generate.prior(number.of.simulations = 1e3,prior.theta = 'UNI',min.theta = 0.1, max.theta = 5,prior.M = 'UNI',min.M = 0.1,max.M = 5)

prior