Learn R Programming

dr (version 2.0.4)

dr.y: ~~function to do ... ~~

Description

Generic function to return the response for a 'dr' fit.

Usage

dr.y(object)

Arguments

object
A 'dr' object

Value

  • A vector.

Details

This returns the response variable for a 'dr' fit. For most, dr methods, this is just the response as specified in the call to 'dr.' For phd and phdres, this returns the residuals from the OLS regression of the original response on the design matrix. For 'phdy', it returns the response minus its mean.

See Also

~~objects to See Also as dr.

Examples

Run this code
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--    or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function(object) {UseMethod("dr.y")}

Run the code above in your browser using DataLab