Description Usage Arguments Details Value Note Author(s) See Also
View source: R/PointProcessSmooth.R
The function ppSmooth
fits a generalized linear point process model
based on a B-spline basis expansion of smooth terms.
1 2 |
formula |
an object of class |
data |
an object of class |
family |
an object of class
|
support |
a |
knots |
a |
N |
a |
Delta |
a |
lambda |
a |
coefficients |
an optional specification of the initial parameters used for the numerical optimization. |
fit |
a |
varMethod |
a |
... |
additional parameters that are passed on to
|
ppSmooth
preprocesses the formula and extracts the smooth terms before
a PointProcessModel
is created by a call to pointProcessModel
.
Terms of the form s(.)
in the formula are treated as special terms.
They are replaced by an automatic basis expansion in terms
of B-splines, and the corresponding parameters are penalized using
the standard integral of the square of the second derivative to ensure smoothness.
Though the basis expansion is in terms of B-splines, there is an internal
reparametrization in terms of orthogonal basis components, which results
in the smoothness penalty being the ordinary Euclidean norm times lambda
.
The knots
argument determines how many knots are used. The locations of the
knots are determined by the quantiles for the distribution of interdistances between
points from the response and points from the terms in the formula.
Each term uses its own set of knots.
All the B-spline basis functions have support within the support interval and are 0 on the boundary. A constant and linear a function are added to the set of B-spline basis functions, whose coefficients are not penalized by default.
The sandwich estimator depends on the amount of penalization. If the fit is oversmoothed, and thus biased, the resulting confidence intervals on the filter functions are most likely misleading.
The function ppSmooth
returns an object of class
PointProcessSmooth
, which is an extension of
PointProcessModel
.
The method does not yet support automatic data adaptive selection of lambda
.
An information quantity (which in this case is TIC) can be extracted
using getInformation
. This quantity can be minimized over at grid for selection
of lambda
.
Niels Richard Hansen Niels.R.Hansen@math.ku.dk.
PointProcessModel
, pointProcessModel
, ppKernel
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.