Learn R Programming

nlme (version 3.1-167)

getResponse: Extract Response Variable from an Object

Description

This function is generic; method functions can be written to handle specific classes of objects. Classes which already have methods for this function include data.frame, gls, lme, and lmList.

Usage

getResponse(object, form)

Value

For the data.frame method, the result of evaluating the left-hand side of form in object.

For gls, lme, and lmList, the sum of the

fitted values and the residuals.

Arguments

object

any object.

form

an optional two-sided formula. Defaults to formula(object).

Author

José Pinheiro and Douglas Bates bates@stat.wisc.edu

See Also

getResponseFormula

Examples

Run this code
getResponse(Orthodont)

Run the code above in your browser using DataLab