altDefSplinesBasis: (Alternative) Defining single splines basis functions, with...

View source: R/splines.R

altDefSplinesBasisR Documentation

(Alternative) Defining single splines basis functions, with interactions

Description

This function returns a numerically integrable function corresponding to a single splines basis function. It was not implemented because it was slower than using the function from the splines2 package.

Usage

altDefSplinesBasis(splineslist, j, l, v = 1)

Arguments

splineslist

a list of splines commands and names of variables that interact with the splines. This is generated using the command removeSplines.

j

the index for the spline for which to generate the basis functions.

l

the index for the basis.

v

a constant that multiplies the spline basis.

Value

a vectorized function corresponding to a single splines basis function that can be numerically integrated.


jkcshea/ivmte documentation built on Aug. 31, 2024, 6:44 p.m.