Learn R Programming

MEDITS (version 0.1.7)

quant: percentile of LFD (Length Frequency Distribution)

Description

The quant function estimates the length class corresponding to the selected percentile of the annual length frequency distribution (LFD) of a time series.

Usage

quant(freq, quantile)

Arguments

freq

data frame of the time series of the LFD, as estimated by LFD function

quantile

percentile value

Value

The function returns a data frame containing the time series of the selected percentiles and the relative variance values.

Details

Length at the percentile (Lq) The different percentiles of a length frequency distribution (LFD) are expected to respond differently to fishing, recruitment pulses, and loss of spawning stock. It is computed from the standardised LFD that is:

where is the number of individuals in the length class l from the haul j standardised to the , and is the surface trawled in the haul j. The length at the percentile (Lq) is computed as:

Where l is the length class corresponding to the percentile (0 < q < 1) for the species i, and is the value of the catch for the length class l. The variance of the length at the percentile is computed as:

Examples

Run this code
# NOT RUN {
library(MEDITS)
merge_TATB <-  m.TATB(TA,TB,"ARISFOL")
merge_TATC <-  m.TATC(TA,TC,"ARISFOL")
GSA <- unique(TA$AREA)
indices <- index.ts(merge_TATB,GSA,"ARISFOL",index = "abundance",
depth_range=c(500,800), sampling = "RSS",plot=FALSE)
freq <- LFD(merge_TATC,indices,sex="m",LC=1,depth_range=c(500,800))
quant(freq,0.95)
# }

Run the code above in your browser using DataLab