R/h0.R

Defines functions h0

Documented in h0

#' This is an internal function. The treatment choice function below the cutoff, used for the data generating function nrddgp.
#'
#' @param r Value of the running variable.
#' @param u Value of the conditional rank of the treatment given the running variable.
#' @return Value of the treatment choice function below the cutoff.

h0 <- function(r,u){
  return( r+ 2*sin(u*pi/2))
}

Try the NonlinearRDD package in your browser

Any scripts or data that you put into this service are public.

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