lme4 (version 0.2-3)

coefGets: Assign parameters

Description

A generic function to assign the parameter vector in an object. For historical reasons parameters are accessed with coef and assigned with coef<-.

Usage

coef(object) <- value

Arguments

object
An object that has a numeric parameter vector accessed by coef.
value
A numeric vector of the same length as coef(object).

Value

  • object with an updated parameter vector

Examples

Run this code
m1 <- pdLogChol(~ age)
coef(m1) <- rnorm(3)
m1

Run the code above in your browser using DataCamp Workspace