Response | R Documentation |
Time after time, in the course of our daily work, we experience that the response variable is hidden very deeply in the object. This again leads to superfluous consultation of the documentation.
Reponse()
relieves us of this work.
Response(x, ...)
x |
the model to use |
... |
more arguments |
The function implements the extraction of the response variables for all the models listed in the package's help text.
the response of model x
Andri Signorell <andri@signorell.net>
model.frame
, model.response
, RefLevel
r.rpart <- FitMod(diabetes ~ ., d.pima, fitfn="rpart")
Response(r.rpart)
# up to the attribute "response" this is the same
identical(StripAttr(Response(r.rpart), "response"),
model.response(model.frame(r.rpart)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.