PCMParamRandomVecParams: Generate a random parameter vector for a model using uniform...

View source: R/PCMParam.R

PCMParamRandomVecParamsR Documentation

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

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

See Also

PCMParamLimits PCMParamGetShortVector


venelin/PCMBase documentation built on March 14, 2024, 8:24 p.m.