R/h1.R

Defines functions h1

Documented in h1

#' This is an internal function. The treatment choice function above 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 above the cutoff.

h1 <- function(r,u){
  return( r+2*u^3)
}

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.