getResponse.RdThis 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.
getResponse(object, form)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.
getResponse(Orthodont)
#> [1] 26.0 25.0 29.0 31.0 21.5 22.5 23.0 26.5 23.0 22.5 24.0 27.5 25.5 27.5 26.5
#> [16] 27.0 20.0 23.5 22.5 26.0 24.5 25.5 27.0 28.5 22.0 22.0 24.5 26.5 24.0 21.5
#> [31] 24.5 25.5 23.0 20.5 31.0 26.0 27.5 28.0 31.0 31.5 23.0 23.0 23.5 25.0 21.5
#> [46] 23.5 24.0 28.0 17.0 24.5 26.0 29.5 22.5 25.5 25.5 26.0 23.0 24.5 26.0 30.0
#> [61] 22.0 21.5 23.5 25.0 21.0 20.0 21.5 23.0 21.0 21.5 24.0 25.5 20.5 24.0 24.5
#> [76] 26.0 23.5 24.5 25.0 26.5 21.5 23.0 22.5 23.5 20.0 21.0 21.0 22.5 21.5 22.5
#> [91] 23.0 25.0 23.0 23.0 23.5 24.0 20.0 21.0 22.0 21.5 16.5 19.0 19.0 19.5 24.5
#> [106] 25.0 28.0 28.0