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

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

a numeric matrix of dimension n x PCMParamCount(o).

See also

PCMParamLimits PCMParamGetShortVector