powered by
Calculates the standard error for the semiparametric estimates in the nonlinear structural function in RDD
nrdse(df, gamma, t, e)
Data frame whose columns are outcome Y, treatment Treat, and running variable R, respectively.
Value of the parameters in the structural function.
Treatment value for calculating the marginal effect.
Value of the error term for calculating the marginal effect.
# \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