comp_models | R Documentation |
Plot/table hindcast estimates versus actual values and produce a table with hindcast performance metrics.
comp_models(dat, comp_age, years = 5, metric = c("md", "mad"))
dat |
A data frame with a column providing:
|
comp_age |
The total age of fish being forecast. |
years |
The number of past years used to evaluate forecast accuracy. |
metric |
The performance metrics used to evaluate forecast accuracy; "md" = "mean deviation", "mad" = "mean absolute deviation" or "mape" = "mean absolute percent error". |
A list containing one figure and one table.
dat6 <- prep_brood(deshka, 4:6)
ARIMA6_ar1 <- arima(dat6$age6_ln, order=c(1,0,0))
dat6$ARIMA_pred <- exp(pred_arima(ARIMA6_ar1, x = dat6$age6_ln)[1,])
dat6$es_pred <- pred_es(dat6$age6_ln)
comp_models(dat = dat6, comp_age = 6, years = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.