f.eval: Regression Function Evaluation

View source: R/MCres_comb.R

f.evalR Documentation

Regression Function Evaluation

Description

Calculates the regression function value given a specification.

Usage

f.eval(which.fun, x, C, th)

Arguments

which.fun

a positive integer; curretly supports 1:6.

x

vector of regressor values.

C

smoothness parameter.

th

true RD parameter.

Details

When which.fun is 5 or 6, x should be a matrix with two columns.

Value

vector of evaluated values with length length(x)

Examples

f.eval(2, runif(100,-1,1), 1, 1)

koohyun-kwon/rdadapt documentation built on May 8, 2022, 8:49 p.m.