nrdse: Standard error for nonlinear RDD

View source: R/nrdse.R

nrdseR Documentation

Standard error for nonlinear RDD

Description

Calculates the standard error for the semiparametric estimates in the nonlinear structural function in RDD

Usage

nrdse(df, gamma, t, e)

Arguments

df

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

gamma

Value of the parameters in the structural function.

t

Treatment value for calculating the marginal effect.

e

Value of the error term for calculating the marginal effect.

Examples


n <- 500
set.seed(123)
data <- nrddgp(n)
nrdse(data,c(1,1,1),.5,.5)


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