generate.prior: Generate Prior Values for the Parameters theta and M

Description Usage Arguments Details Value Examples

View source: R/infeR.R

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

infeR documentation built on May 21, 2017, 12:29 a.m.

Search within the infeR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.