print.pandemicPredicted: Prints prediction summary of pandemic model

Description Usage Arguments See Also Examples

View source: R/print.pandemicPredicted.R

Description

S3 method designed to summarize the prediction obtained by the posterior_predict.stanpandemic function. It is not necessary to call function directly, only visualize the object directly, unless it is desired to change the default arguments.

Usage

1
2
## S3 method for class 'pandemicPredicted'
print(object, summaryFun = mean, printPred = "Long", truncView = 3)

Arguments

summaryFun

Use this function to summarize the predictions. Default argument is mean, but can be any function on a vector

printPred

Valid values are 'Long' or 'Short'. Note that 'Short' will show cumulative predictions

See Also

posterior_predict.stanpandemic and plot.pandemicPredicted

Examples

1
2
3
4
5
## Not run: dataMG = load_covid("Brazil","MG")
estimMG = stan_pandemic(dataMG)
predMG = posterior_predict(estimMG)
predMG
## End(Not run)

pandemicLP/pandemicLP documentation built on July 18, 2020, 12:37 a.m.