check_init_chain: Check whether the random initial values for a chain are...

Description Usage Arguments Details Value

View source: R/utils.R

Description

Checks the initial values before they are passed to Stan to make sure they are appropriate.

Usage

1
check_init_chain(single.init.list, type = c("pheno", "geno"))

Arguments

single.init.list

The list of initial values to be checked.

type

Are the intial values for a phenotypic cline or genetic cline: "pheno", or "geno"? Only affects limit checking for the pmin and pmax initial values, which must be between 0 and 1 for genetic clines.

Details

Used internally, in prep_init_list.

Checks that: width is positive, delta parameters are positive, tau parameters, pmin/pmax, and f are between 0 and 1, and that pmin is less than pmax.

Value

NULL, if no problems, otherwise a vector of parameters which have inappropriate initial values.


tjthurman/BAHZ documentation built on May 30, 2020, 8:28 a.m.