coef<-.tramME | R Documentation |
Sets the whole vector of fixed-effects coefficients of a tramME model. The parameters of the baseline transformation function should respect the restrictions of the parameter space. This is checked before setting the new parameter values provided that the parameters for the variance components has already been set. If the model contains fixed coefficient parameters, the input should also respect that. When called on a fitted tram object, the function sets it to unfitted and removes all parts that come from the estimation.
## S3 replacement method for class 'tramME'
coef(object) <- value
object |
A |
value |
Numeric vector of new coefficient values. |
A tramME
object with the new coefficient values.
data("sleepstudy", package = "lme4")
mod <- LmME(Reaction ~ Days + (Days | Subject), data = sleepstudy, nofit = TRUE)
coef(mod) <- c(-1, 0.5, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.