R/riv.R

Defines functions riv

Documented in riv

riv <- function(Y, Xend, Xex=NULL, Zinst, dummies=NULL,
                method = c('S-est', 'SD-est', 
                           'MCD-est', 'classical')) {

  method <- match.arg(method)
  
  if (is.null(dummies)) {
    riv_noDummies(Y, Xend, Xex, Zinst,
                  intercept=TRUE,
                  method=method)
  } else {
    riv_withDummies(Y, Xend, Xex, Zinst, dummies,
                    method = method)
  }
}

Try the riv package in your browser

Any scripts or data that you put into this service are public.

riv documentation built on May 24, 2018, 9:04 a.m.