View source: R/penalized-lag-lead.R
smooth.construct.fdl.smooth.spec | R Documentation |
Originally proposed in Obermeier et al., 2015, Flexible Distributed Lags for Modelling Earthquake Data, Journal of the Royal Statistical Society: Series C (Applied Statistics), 10.1111/rssc.12077. Here extended in order to penalize lead times in addition to lag times. Ideally the lag-lead window would then be selected in a data-driven fashion. Treat as experimental.
## S3 method for class 'fdl.smooth.spec'
smooth.construct(object, data, knots)
object |
An object handled by mgcv |
data |
The data set |
knots |
A vector of knots |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.