olmm-overwritePar | R Documentation |
olmm
objects.Overwrite coefficients of an olmm
object and update the
likelihood and estimates for random effects.
olmm_overwritePar(object, coefficients)
object |
an |
coefficients |
numeric vector of model coefficients. Must have the
same length as |
May be used for simulation studies where parameters are user defined.
An olmm
object.
Reto Burgin
olmm
data(schizo)
model.10.3.1 <-
olmm(imps79o ~ tx + sqrt(week) + re(1|id),
data = schizo, family = cumulative())
summary(model.10.3.1)
(newCoef <- coef(model.10.3.1))
newCoef[1:3] <- c(-7, -4, -2) # thresholds
newCoef["tx"] <- 1.5
newCoef["sqrt(week)"] <- 1.6
newCoef[6] <- 2
model.10.3.1.mod <- olmm_overwritePar(object = model.10.3.1, coefficients = newCoef)
summary(model.10.3.1.mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.