R/riv.R

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 2, 2019, 4:11 a.m.