plot_pred_event_outcomes: Plot number of predicted events in function of type of...

Description Usage Arguments Value Examples

View source: R/plot_pred_event_outcomes.R

Description

A plot that shows the number of average daily predicted events in function of considered outcome is shown. The bold line represents the point estimate of the predicted mean value of the number of health outcome events. The crossbar represents the 95

Usage

1
plot_pred_event_outcomes(pred_events, plot_file)

Arguments

pred_events

[data frame] A data frame containing the following variables: - ‘date' : date of simulated day in format ’yyyy-mm-dd'; - 'event': name of the outcomes; - 'lower': lower bound of 95 of events; - 'fit' : average daily predicted number of events; - 'upper': upper bound of 95 of events.

plot_file

[chr] filename of the destination path. Format of image is automatically decided by the filename extension

Value

A boxplot showing the number of predicted events for each type of event

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
  library(imthcm)
  default_models <- train_event_models(use_ita = TRUE)
  predicted_events <- predict_hm(default_models,
    test_weather, test_weather[c(728L, 731L), ]
  )
  plot_pred_event_outcomes(predicted_events,
    plot_file = 'outcome_plot.png'
  )

## End(Not run)

UBESP-DCTV/imthcm documentation built on Dec. 2, 2019, 9:26 a.m.