rddensity_fV: Internal function, implements density test.

View source: R/rddensity_fun.R

rddensity_fVR Documentation

Internal function, implements density test.

Description

rddensity_fV generates primitive results for the density test.

Usage

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

Details

This is an internal function, and should not be called by users. NOTE: data is assumed to be on ascending order.

Value

Returns a data frame for further use.


rddensity documentation built on Jan. 22, 2023, 1:26 a.m.