sm {BNSP} | R Documentation |
Smooth terms in mvrm formulae
Description
Function used to define smooth effects in the mean and variance formulae of function mvrm
.
The function is used internally to construct the design matrices.
Usage
sm(..., k = 10, knots = NULL, bs = "rd")
Arguments
... |
one or two covariates that the smooth term is a function of. If two covariates are used,
they may be both continuous or one continuous and one discrete. Discrete variables should be defined as |
k |
the number of knots to be utilized in the basis function expansion. |
knots |
the knots to be utilized in the basis function expansion. |
bs |
a two letter character indicating the basis functions to be used. Currently, the options are
|
Details
Use this function within calls to function mvrm
to specify smooth terms in the mean and/or variance function
of the regression model.
Univariate radial basis functions with basis functions or
knots are defined by
where denotes the Euclidean norm of
and
are the knots that
are chosen as the quantiles of the observed values of explanatory variable
,
with
and the remaining knots chosen as equally spaced quantiles between
and
.
Thin plate splines are defined by
where .
Radial basis functions for bivariate smooths are defined by
Value
Specifies the design matrices of an mvrm
call
Author(s)
Georgios Papageorgiou gpapageo@gmail.com
See Also
Examples
#see \code{mvrm} example