apply_prm: apply_prm

Description Usage Arguments Value

View source: R/apply_prm.R

Description

apply_prm applied panel regression model to new data

Usage

1
2
3
4
5
6
apply_prm(dat, reg, CatchLags = 4, LifeHistoryVars = c("MaxLength",
  "AgeMat", "VonBertK", "Temp", "SpeciesCat", "SpeciesCatName", "b_to_k_ratio"),
  IdVar = "IdOrig", CatchVariables = c("YearsBack", "ScaledCatch",
  paste("ScaledCatch", 1:CatchLags, "Back", sep = ""), "MaxCatch",
  "TimeToMaxCatch", "InitialScaledCatchSlope", "MeanScaledCatch",
  "CatchToRollingMax"), min_catch_years = 10)

Arguments

dat

data frame

reg

the regression model being used

CatchLags

number of years of catch lags

LifeHistoryVars

life history variables needed

IdVar

the variable marking id

CatchVariables

catch related variables

min_catch_years

minimum number of catch years

Value

data with PRM predicted log BvBmsy


DanOvando/GUM documentation built on May 6, 2019, 1:22 p.m.