id_formula: Define a formula for the convolution model

View source: R/methods.R

id_formula.idbrms_convolutionR Documentation

Define a formula for the convolution model

Description

Define a formula for the convolution model

Define a model specific formula

Usage

## S3 method for class 'idbrms_convolution'
id_formula(data, scale = ~1, cmean = ~1, lcsd = ~1, ...)

id_formula(data, ...)

Arguments

data

A data.frame as produced by prepare that must contain the date, location (as loc), primary (the data that the outcome is a convolution of) and secondary (the observation of interest. Should have class "idbrms_convolution".

scale

Formula for the scaling of primary observations to secondary observations.

cmean

Formula for the convolution mean. Defaults to intercept only.

lcsd

Formula for the logged convolution standard deviation. Defaults to intercept only.

...

Additional arguments for method.

Author(s)

Sam Abbott

Sam Abbott


epiforecasts/idbrms documentation built on Sept. 9, 2022, 9:48 p.m.