Description Usage Arguments Details Value References See Also Examples
Fit distributed lag models using lme4 to penalize smooth terms. Other random effects terms and generalized mixed models supported.
| 1 2 3 | 
| formula | an object of class  | 
| data | an optional data frame, list, or environment containing the variables of the model to be fitted | 
| subset | optional vector specifying a subset of observations to be used in the fitting process | 
| na.action | optional function that indicates what should happen when the data contains
 | 
| weights | optional vector of weights to be used in the fitting process. Should be
 | 
| offset | a known offset term to include in the model, e.g. for  | 
| method | algorithm used to fit the DLM. Partial matching and capitalization allowed.
The default is  | 
| family | a description of the error distribution and link function to be used
in the model. The default is  | 
| control | either a  | 
| ... | Additional parameters passed to  | 
Models are specified using typical lme4 formula syntax with
at least one set of
lag terms returned by a given smoothing function (e.g. see cr).
The smoothing function can be any that returns a SmoothLag basis
object. See Examples
for a basic call to dlm using the formula interface, and a cubic
radial lag basis specified via cr, and the dlmBE
package documentation for a discussion
of the types of models dlm is designed to handle.
An S4 object that inherits from dlMod (and
lme4::merMod, by extension) containing the
results of the fitted model. Many standard model summary methods are
available for these object types
Baek J, Sanchez BN, Berrocal VJ, & Sanchez-Vaznaugh EV (2016) Epidemiology 27(1):116-24. (PubMed)
Baek J, Hirsch JA, Moore K, Tabb LP, et al. (2017) Epidemiology 28(3):403-11. (PubMed)
Bates D, Maechler M, Bolker BM, & Walker SC (2015) Fitting linear mixed-effects models using lme4. J Stat Softw 67(1). (jstatsoft.org)
| 1 2 3 4 5 6 7 8 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.