Learn R Programming

fishmethods (version 1.3-0)

alkD: Sample Size Determination for Age Subsampling Using the D statistic

Description

Calculates the D statistic (sqrt of accumulated variance among ages; Lai 1987) for a range of age sample sizes using data from an age-length key. Assumes a two-stage random sampling design with proportional or fixed allocation.

Usage

alkD(x, lss = NULL, minss = NULL, maxss = NULL, sampint = NULL, 
    allocate = 1)

Arguments

x
a data frame containing an age-length key (similar to Table 8.3 on page 307 of Quinn and Deriso (1999)). The first column must contain the length intervals as numeric labels (no ranges), the second column must contain the number of samples with
lss
the sample size for length frequency
minss
the minimum age sample size
maxss
the maximum age sample size. Value can not be larger than the sample size for the length frequency(lss)
sampint
the sample size interval
allocate
the type of allocation: 1=proportional, 2=fixed.

Value

  • labellist element containing the summary of input criteria
  • comp2list element containing the D statistic for each age sample size given lss

Details

Following Quinn and Deriso (1999:pages 308-309), the function calculates the D statistic (sqrt of accumulated variance among ages; Lai 1987) for a range of age sample sizes defined by minss, maxss, and sampint at a given length sample size lss. The size of an age sample at a desired level of D can be obtained by the comparison. See reference to Table 8.8, p. 314 in Quinn and Deriso.

References

Quinn, T. J. and R. B. Deriso. 1999. Quantitative Fish Dynamics. Oxford University Press, New York, New York. 542 pages Lai, H.L. 1987. Optimum allocation for estimating age composition using age-length keys. U.S. Fish. Bull. 85:179-185

See Also

alkss alkprop

Examples

Run this code
data(alkdata)
alkD(alkdata,lss=1000,minss=25,maxss=1000,sampint=20,allocate=1)

Run the code above in your browser using DataLab