ggbFittedFromAges: make the growth-adjusted quasi life table columns required by...

View source: R/ggb.R

ggbFittedFromAgesR Documentation

make the growth-adjusted quasi life table columns required by GGB method

Description

Called by ggbChooseAges() and ggbcoverageFromYear(). This simply modulates some code that would otherwise be repeated. Users probably don't need to call this function directly. If columns produced by ggbMakeColumns() are not present, then we call it here just to keep things from breaking.

Usage

ggbFittedFromAges(codi, agesfit, lm.method = "oldschool")

Arguments

codi

data.frame as produced by ggbMakeColumns()

agesfit

a set of continuous ages to estimate coverage from

lm.method

character, one of:

  • "oldschool" default sd ratio operation of still unknown origin

  • "lm" or "ols" for a simple linear model

  • "tls", "orthogonal", or "deming" for total least squares

  • "tukey", "resistant", or ""median" for Tukey's resistant line method

Value

codi, with the column fitted added.


albinomatheus/toolbox documentation built on June 13, 2024, 5:42 a.m.