PCMBase (version 1.2.10)

PCMParamRandomVecParams: Generate a random parameter vector for a model using uniform distribution between its lower and upper bounds.

Description

Generate a random parameter vector for a model using uniform distribution between its lower and upper bounds.

Usage

PCMParamRandomVecParams(o, k, R, n = 1L, argsPCMParamLowerLimit = NULL,
  argsPCMParamUpperLimit = NULL)

Arguments

o

a PCM model object or a parameter

k

integer denoting the number of traits.

R

integer denoting the number of regimes.

n

an integer specifying the number of random vectors to generate

argsPCMParamLowerLimit, argsPCMParamUpperLimit

named lists of arguments passed to PCMParamLowerLimit and PCMParamUpperLimit.

Value

if n = 1, a numeric vector of length PCMParamCount(o); if n > 1, a numeric matrix of dimension n x PCMParamCount(o).

See Also

PCMParamLimits PCMParamGetShortVector