zeligBuildSpline: Developer Utility Function for Adding Simple Cubic Splines to...

Description Usage Arguments Value Author(s) See Also

Description

The zeligBuildSpline allows developers to include simple cubic smoothing splines of one dimension in models, by constructing k knot points equidistantly spaced across some variable, and adding those variables to the formula expression as a basis function for the spline.

Usage

1

Arguments

formula

A string or formula object, with a variable to spline denoted as s(.)

k

A number of knot points to set equidistant across the range of the variable to spline.

data

A dataset

Value

formula

A modified formula, including the names of all the basis generated basis function variables, and removing the s(.) notation.

data

A reconfigured dataset, if modified, with spline basis function variables added.

Author(s)

James Honaker jhonaker@iq.harvard.edu

See Also

The full Zelig developer manual may be accessed online at http://gking.harvard.edu/zelig


IQSS/Zelig4 documentation built on May 9, 2019, 9:13 a.m.