tag_residuals_direct: Direct method for detecting tag obstruction

View source: R/tag_residuals_direct.R

tag_residuals_directR Documentation

Direct method for detecting tag obstruction

Description

tag_residuals_direct uses a linear model to estimate the relationship between surface light and light below the surface for the specified depth bins.

Usage

tag_residuals_direct(
  x,
  formula = log10(trans_llight) ~ log10(surf_trans_llight) + interaction(vessel, cruise),
  water.col = "trans_llight",
  surface.col = "surf_trans_llight",
  depth.col = "cdepth",
  depth.bins = c(1, 3, 5, 7, 9),
  ...
)

Arguments

x

Data frame containing surface light, light at depth, depth, and unique identifiers for survey vessels, years, etc.

formula

an object of class formula, passed to lm

water.col

A character vector with the name of the column containing water column light measurements.

surface.col

A character vector with the name of the column containing surface light measurements.

depth.col

A character vector with the name of the column containing depths.

depth.bins

Depth bins for which linear regression should be conducted.

...

Additional arguments

Author(s)

Sean Rohan sean.rohan@noaa.gov


sean-rohan/trawllight documentation built on Jan. 13, 2023, 10:43 p.m.