Learn R Programming

LARF (version 1.1)

summary.larf: Local Average Response Functions

Description

Methods to standard generics for instrumental-variable regressions fitted by larf.

Usage

## S3 method for class 'larf':
summary(object, \dots)

Arguments

object
an object of class "larf" as fitted by larf.
...
currently not used.

Details

larf is the high-level interface to the work-horse function larf.fit. A set of standard methods (including summary, vcov, predict) is available.

See Also

larf, larf.fit

Examples

Run this code
data(c401k)

# Choose the first 500 units for a small example
c401k <- c401k[1:500,]

Y <- c401k$pira
X <- as.matrix(c401k[c("inc", "incsq", "marr",  "male", "age", "agesq",  "fsize"  )])
D <- c401k$p401k
Z <- c401k$e401k

# high-level interface
est <- larf(Y~X, D, Z)

summary(est)

Run the code above in your browser using DataLab