lme4.dlm: Fit distributed lag models using lme4

Description Usage Arguments Details Value

View source: R/dlm.R

Description

Fits an interpreted distributed lag model using lme4 modular functions

Usage

1
lme4.dlm(parsed, family = gaussian(), control = list(), REML = FALSE, ...)

Arguments

parsed

an interpreted dlm formula object returned by interpret.dlm

family

a description of the error distribution and link function to be used in the model. The default is gaussian(link = "identity"). See stats::family for possible family functions and details

control

either a list object with arguments to be passed to the lme4::lmerControl sequence, or the output of [g]lmerConrol directly

REML

if TRUE and a linear dlm model is specified, lme4.dlm will use REML to fit the model. MLE will be use otherwise

...

other parameters to be passed to the lme4 modular family functions

Details

Together with interpret.dlm, this function does the main grunt work for dlm. Given an interpreted model, lme4.dlm organizes the parsed data into the lme4 modular functions to fit the model and returns the fit as an lme4 object.

Value

an object that inherits from lme4::merMod containing a fitted model


Biostatistics4SocialImpact/dlm documentation built on May 19, 2019, 10:47 p.m.