pred_lm: One-step ahead predictions from a linear model

View source: R/pred_lm.R

pred_lmR Documentation

One-step ahead predictions from a linear model

Description

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

Usage

pred_lm(mod)

Arguments

mod

a class "lm" object

Value

a matrix where the first row is the prediction and the second row is the SE of the prediction.

Examples

dat6 <- prep_brood(deshka, 4:6)
sib6 <- lm(age6_ln ~ age5_ln, data = dat6)
pred_lm(sib6)


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