extend_filter_model: Extend a filter model with new data.

Description Usage Arguments Value

View source: R/bayes-filter.R

Description

This function uses the information in a filter model structure to set up the input for fit_filter. The observed data is supplemented with a new dataset, and the fit is continued from the final state stored in the model.

Usage

1
extend_filter_model(filterfit, newobs, tfin = NULL)

Arguments

filterfit

Structure of class filter-fit returned by fit-filter.

newobs

Observed dataset to use to extend the fit. This dataset should have some observations at later times than the final time in the input model. Data from times earlier than the final time in the input model will be ignored.

tfin

Last time to use to fit the new model. Default is to use the time of the last observation.

Value

A filter-fit structure for which the fit has been extended using the new data


rplzzz/CovMitigation documentation built on June 7, 2021, 8:48 a.m.