simulate.GPPM: Simulate from a Gaussian process panel model

Description Usage Arguments Value Examples

Description

This function is used to simulate from a Gaussian process panel model, which has been specified using gppm.

Usage

1
2
3
## S3 method for class 'GPPM'
simulate(object, nsim = 1, seed = NULL,
  parameterValues = NULL, verbose = FALSE, ...)

Arguments

object

object of class GPPM. The Gaussian process panel model from which to simulate.

nsim

integer. Number of data sets to generate.

seed

numeric. Random seed to be used.

parameterValues

numeric vector. Used to specify the values for the parameters. Which value belongs to which parameter is determined by the names attribute of parameterValues. See also the example.

verbose

boolean. Print diagnostic output?

...

additional parameters (currently not used).

Value

A simulated data set, which is an object of class 'LongData'. If nsim>1 a list of nsim simulated data sets.

Examples

1
2
3
4
5
6
7
data("demoLGCM")
lgcm <- gppm('muI+muS*t','varI+covIS*(t+t#)+varS*t*t#+(t==t#)*sigma',
        demoLGCM,'ID','x')

parameterValues <- c(10,-1,0,10,0,0.1)
names(parameterValues) <-c('muI','muS','varI','varS','covIS','sigma')
simData <- simulate(lgcm,parameterValues=parameterValues)

gppm documentation built on May 2, 2019, 6:50 a.m.

Related to simulate.GPPM in gppm...