Learn R Programming

NonlinearRDD (version 0.0.4)

nrdse: 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

Run this code
# \donttest{
n <- 500
set.seed(123)
data <- nrddgp(n)
nrdse(data,c(1,1,1),.5,.5)
# }

Run the code above in your browser using DataLab