Description Usage Arguments Details Value Functions References See Also Examples
Constructs a set of basis vectors for distances between distributed lag points, and apply as a linear transformation of a concentration matrix.
1 2 3 |
x |
a vector of values to construct the basis from. Missing values are not allowed |
Z |
a covariate matrix (or object that can be coerced to a |
... |
arguments to be passed to |
These functions are little more than convenient
wrappers to the function basis and the
SmoothLag class constructor. They are intended to
simplify the task of specifying lag terms in a model formula.
The functions compute a set of basis vectors for
parameter x and applies this basis as a linear transformation
of the covariate/concentration matrix parameter, Z. For example,
if cr is used and Z is the identity matrix,
the model fit will simply be the natural cubic spline of x.
Note that other basis extensions should always return an object
that inherits from SmoothLag
An S4 object of class SmoothLag.
cr: natural cubic radial basis spline
sm: user-defined smoothing
Rupert D, Wand MP, & Carroll RJ (2003) Semiparametric Regression. New York: Cambridge University Press.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.