modelrmse: Calculates model RMSE

Description Usage Arguments

View source: R/rmse_new.R

Description

Calculates model RMSE

Usage

1
2
3
4
5
6
7
modelrmse(
  modelOutput,
  start_date,
  target_data,
  weights = c(1, 0.5, 0.25, 0.25),
  under_report_factor = 1
)

Arguments

modelOutput

results from the model

start_date

date The date which the first model time-point is being compared to.

target_data

Data frame The observed data that the model is targeted to match.

weights

Vector Vector of length 4 containing weights indicating the relative weighting to give cases, deaths, allvaccinations and fully vaccinated For example c(1.0, 0.5, 0.25, 0.25)

under_report_factor

fraction Estimated fraction of deaths that get reported as covid-19 deaths. This is deprecated and no longer used. The estimated_deaths in the variable "cum_est_deaths" allows for adjusting the death reporting rates.


wimmyteam/conisi documentation built on Oct. 30, 2021, 4:11 p.m.