Description Usage Arguments Value Author(s) See Also
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.
1 | zeligBuildSpline(formula, k, data)
|
formula |
A string or formula object, with a variable to spline denoted
as |
k |
A number of knot points to set equidistant across the range of the variable to spline. |
data |
A dataset |
formula |
A modified formula, including the names of all the basis generated
basis function variables, and removing the |
data |
A reconfigured dataset, if modified, with spline basis function variables added. |
James Honaker jhonaker@iq.harvard.edu
The full Zelig developer manual may be accessed online at http://gking.harvard.edu/zelig
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.