nlme.simPars: Simulate from an nlme object

View source: R/nlme.simPars.r

nlme.simParsR Documentation

Simulate from an nlme object

Description

Draw samples from multivariate normal parameter distribution from an nlme object

Usage

## S3 method for class 'simPars'
nlme(paramList, N = 1)

Arguments

paramList

output from nlme.FixPars or nlme.RanPars

N

sample size of the requested predictions

Value

Matrix with parameter prediction

See Also

nlme.getFixPars, nlme.getRanPars, nlme.extract

Examples

library(nlme)
fm1 <- nlme(height ~ SSasymp(age, Asym, R0, lrc),
  data = Loblolly,
  fixed = Asym + R0 + lrc ~ 1,
  random = Asym ~ 1,
  start = c(Asym = 103, R0 = -8.5, lrc = -3.3)
  )
nlme.getFixPars(fm1)
nlme.getRanPars(fm1)
nlme.simPars(nlme.getFixPars(fm1), N = 10)

qPharmetra/qpToolkit documentation built on May 24, 2023, 8:52 a.m.