parmat: Create a matrix of parameters

Description Usage Arguments Value Author(s) Examples

Description

parmat is a utility that makes a vector of parameters suitable for use in pomp functions.

Usage

1
parmat(params, nrep = 1)

Arguments

params

named numeric vector or matrix of parameters.

nrep

number of replicates (columns) desired.

Value

parmat returns a matrix consisting of nrep copies of params.

Author(s)

Aaron A. King kingaa at umich dot edu

Examples

1
2
3
4
5
6
  ## generate a bifurcation diagram for the Ricker map
  pompExample(ricker)
  p <- parmat(coef(ricker),nrep=500)
  p["r",] <- exp(seq(from=1.5,to=4,length=500))
  x <- trajectory(ricker,times=seq(from=1000,to=2000,by=1),params=p)
  matplot(p["r",],x["N",,],pch='.',col='black',xlab="log(r)",ylab="N",log='x')

Example output

newly created object(s):
 ricker 

pomp documentation built on May 2, 2019, 4:09 p.m.

Related to parmat in pomp...