slopeint: get the slope the slope and intercept implied by a set of...

View source: R/plot_functions.R

slopeintR Documentation

get the slope the slope and intercept implied by a set of ages

Description

Called by ggbFittedFromAges() and ggbChooseAges()

Usage

slopeint(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

a pairlist with elements $a for the intercept and $b for the slope


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