Y: Numeric vector or data matrix, the estimated c.d.f.
X: Numeric vector or data matrix, the running variable
Nl, Nr: Integers, sample sizes to the left and right of cutoff.
Nlh, Nrh: Integers, sample sizes to the left and right of cutoff, within bandwidth
hl, hr: Numeric, bandwidth to the left and right of cutoff.
p: Integer, polynomial order
s: Integer, higher order derivative estimate
kernel: String, the kernel function, can be triangular (default), uniform or epanechnikov.
fitselect: String, the model, can be restricted or unrestricted
vce: String, specifies the procedure used to compute the variance-covariance matrix estimator. Options are: "plugin" for asymptotic plug-in standard errors. "jackknife" for jackknife standard errors.
massPoints: Boolean, whether whether point estimates and standard errors
Returns
Returns a data frame for further use.
Details
This is an internal function, and should not be called by users. NOTE: data is assumed to be on ascending order.