Learn R Programming

NonlinearRDD (version 0.0.4)

nrdbw: 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)

Value

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

Arguments

df

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

Examples

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

Run the code above in your browser using DataLab