nrdbw: Bandwidth selector for nonlinear RDD

View source: R/nrdbw.R

nrdbwR Documentation

Bandwidth selector for nonlinear RDD

Description

Provides recommendations for the three bandwidths in the semiparametric estimation of the structural function in RDD with a continuous treatment variable.

Usage

nrdbw(df)

Arguments

df

Data frame whose columns are outcome Y, treatment Treat, and running variable R, respectively.

Value

A vector of length 3 containing the recommended bandwidth for each steps in the NRDD function.

Examples

n <- 500
set.seed(123)
data <- nrddgp(n)
nrdbw(data)

NonlinearRDD documentation built on Nov. 26, 2023, 5:07 p.m.