varianceEstimation: Parametric variance estimation

Description Usage Arguments Value Examples

Description

Calculates mean, variance, coefficient of variation and 90

Usage

1
2
3
varianceEstimation(projectName, proc = "SweptAreaDensity",
  ignore.case = TRUE, na.rm = TRUE, out = c("bySpecCat", "byLevel",
  "listByLevel"))

Arguments

projectName

The name or full path of the project, a baseline object (as returned from getBaseline or runBaseline, og a project object (as returned from openProject).

proc

The process which returns the acoustic density on which the variance should be estimated.

ignore.case

Logical: If TRUE ignore case in species category SpecCat.

na.rm

Logical: If FALSE return NA for all variance and mean statistics in the presence of NA in at lesat one stratum.

out

A string specifying the format of the output (first element used). (1) If out = "bySpecCat", return a list with one element per species category SpecCat, with sublists for the total survey and for each stratum. (2) If out = "byLevel", return a list with elements 'Total' and 'Stratum', where all species categories are merged in one data frame. (3) If out = "listByLevel", return a list with elements 'Total' and 'Stratum', with sublists for all species categories.

Value

A list with names "Stratum" and "Total" containing dataframes for each species with the following columns: Stratum, Mean, SD (standard deviation), Variance, CV (coefficient of variation), and lower and upper 90

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Download an example swept area project:
# pr <- createProject(
#     "ftp://ftp.imr.no/StoX/Example%20projects/Example_sweptarea_BarentsSea_cod_1999.zip"
# )
# v <- varianceEstimation(pr)

## End(Not run)

Sea2Data/Rstox documentation built on May 14, 2019, 8:58 a.m.