nlmeBM {covBM} | R Documentation |
nlmeBM
Description
This function is a wrapper for nlme.formula
that allows
Brownian motion, fractional Brownian motion or integrated Ornstein-Uhlenbeck
components to be included in non-linear mixed models, with related parameter
estimates and confidence intervals returned in their natural parameterisation.
Usage
nlmeBM(model, data, fixed, random, start, covariance = NULL,
method = c("ML", "REML"), control = list(), verbose = FALSE)
Arguments
model |
This is as specified for |
data |
This is as specified for |
fixed |
This is as specified for |
random |
This is as specified for |
start |
This is as specified for |
covariance |
An optional |
method |
This is as specified for |
control |
This is as specified for |
verbose |
This is as specified for |
Value
An object of class "nlme" and inheriting from class "lme" representing the non-linear mixed effects model fit.
Examples
data(Milk, package="nlme")
Model_fit<- nlmeBM(protein ~ SSasymp(Time, Asym, R0, lrc), data=Milk,
fixed = Asym + R0 + lrc ~ 1, random = Asym ~ 1|Cow,
covariance=covFracBM(form=~Time|Cow),
start = c(Asym = 3.5, R0 = 4, lrc = -1))