hansen_broken_stick: Broken stick reaction distance model

Description Usage Arguments Value

View source: R/hansen_broken_stick.R

Description

Continuous version modified from Hansen et al. (2013, 2015)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
hansen_broken_stick(
  rr,
  Eb,
  cc,
  vv,
  ww,
  yy,
  Eb.break,
  cc.break,
  rr.max,
  sigma.rr = NULL,
  fit = TRUE
)

Arguments

rr

Observed reaction distance

Eb

Light intensity

cc

Effective attenuation coefficient, beam attenuation coefficient, or NTU

vv

Light function intercept

ww

Light function slope

yy

Turbidity function slope

Eb.break

Saturation intensity threshold for light

cc.break

Minimum turbidity threshold

rr.max

Maximum reaction distance

sigma.rr

Standard deviation of reaction distance

fit

Use the model in fitting mode?

Value

If fit == TRUE, returns the negative log likelihood. Otherwise, returns a list containing model parameters, negative log-likelihood, and fitted reaction distances.


sean-rohan-NOAA/GVRDM documentation built on Dec. 22, 2021, 11:14 p.m.