Construct a particle filter using the carehomes model. This is a convenience function, ensuring that compatible functions are used together.

carehomes_particle_filter(data, n_particles, n_threads = 1L, seed = NULL)

Arguments

data

Data suitable for use with with the mcstate::particle_filter, created by created by mcstate::particle_filter_data(). We require columns "icu", "general", "deaths_hosp", "deaths_comm", "deaths", "admitted", "new", "npos_15_64", "ntot_15_64", though thse may be entirely NA if no data are present.

n_particles

Number of particles to use

n_threads

Number of threads to use

seed

Random seed to use

Value

A mcstate::particle_filter object