rddensity_fV function

Internal function, implements density test.

Internal function, implements density test.

rddensity_fV generates primitive results for the density test.

rddensity_fV( Y, X, Nl, Nr, Nlh, Nrh, hl, hr, p, s, kernel, fitselect, vce, massPoints )

Arguments

  • 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.

  • Maintainer: Xinwei Ma
  • License: GPL-2
  • Last published: 2024-10-06

Useful links