rddensity_fV: Internal function, implements density test.

Description Usage Arguments Details Value

View source: R/rddensity_fun.R

Description

rddensity_fV generates primitive results for the density test.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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 March 4, 2021, 9:09 a.m.