pred_ma: Moving average model estimates

View source: R/pred_ma.R

pred_maR Documentation

Moving average model estimates

Description

Creates a series of one-step ahead predictions for all years beyond the 5th year in the time series using a log scale moving average of the time series to be used in evaluating model performance in past seasons.

Usage

pred_ma(var, yrs = 5)

Arguments

var

a log transformed time series.

yrs

years in the moving average. NULL to average the entire series.

Value

a matrix with columns "mean" and "median" providing predictions on the natural scale.

Examples

dat6 <- prep_brood(deshka, 4:6)
pred_ma(dat6$age6_ln)


adamreimer/preseason documentation built on Feb. 3, 2024, 3:39 a.m.