Learn R Programming

depCensoring (version 0.1.7)

Bspline.unit.interval: Evaluate the specified B-spline, defined on the unit interval

Description

This function evaluates the specified B-spline defined on the unit interval, when considering n.if.per.cov B-splines. Currently, the implementation is based on the one in Andrews, Shi 2013 (supplementary materials).

Usage

Bspline.unit.interval(x, spline.index, n.if.per.cov, degree = 3)

Arguments

x

value inside the unit interval at which to evaluate the spline.

spline.index

Index of the spline to evaluate.

n.if.per.cov

Number of B-splines to consider over the unit interval.

degree

Degree of the B-splines. Default is degree = 3.

References

Andrews, D.W.K. and Shi, X. (2013). Inference based on confitional moment inequalities. Econometrica. 81(2):609-666.