surveyAveraging.IV: Smooth survey data using inverse variance (IV) averaging

View source: R/surveyAveraging.IV.R

surveyAveraging.IVR Documentation

Smooth survey data using inverse variance (IV) averaging

Description

Function to smooth survey data using inverse variance averaging

Usage

surveyAveraging.IV(
  srvData,
  type = "biomass",
  sex = "male",
  category = "mature",
  n = 3,
  pdfType = "lognormal",
  ci = 0.95,
  verbose = FALSE,
  showPlot = FALSE
)

Arguments

srvData
  • raw survey data dataframe

type
  • data type ('abundance' or 'biomass') to average

sex
  • sex ('male' or 'female') to average

category
  • category ('immature','mature', or 'legal') to average

n
  • number of years to average across

pdfType
  • distribution for CIs

ci
  • confidence interval for CIs

verbose
  • flag (T/F) to print intermediate output

showPlot
  • flag (T/F) to plot results

Details

None.

Value

dataframe with inverse-variance averaged survey data, with columns

  • year = survey year

  • type = 'IV'

  • value = averaged value

  • lci = lower confidence interval

  • uci = upper confidence interval


wStockhausen/rPIBKC documentation built on April 25, 2023, 6:50 p.m.