Define a formula for the convolution model

Define a model specific formula

# S3 method for 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

Sam Abbott

Sam Abbott