fishmethods (version 1.10-4)

clus.lf: Statistical Comparison of Length Frequencies from Simple Random Cluster Sampling

Description

Statistical comparison of length frequencies is performed using the two-sample Kolmogorov & Smirnov test. Randomization procedures are used to derive the null probability distribution.

Usage

clus.lf(group = NULL, haul = NULL, len = NULL, number= NULL,
 binsize = NULL, resamples = 100)

Arguments

group

vector containing the identifier used for group membership of length data. This variable is used to determine the number of groups and comparisons. Identifier can be numeric or character.

haul

vector containing the variable used to identify the sampling unit (e.g., haul) of length data. Identifier can be numeric or character.

len

vector containing the length class data. There should be one record for each length class by group and haul.

number

vector containing the numbers of fish in each length class.

binsize

size of the length class (e.g., 5-cm, 10, cm, etc.) used to construct the cumulative length frequency from raw length data. The formula used to create bins is \(trunc(len/binsize)*binsize+binsize/2\). If use of the raw length classes is desired, then binsize=0.

resamples

number of randomizations. Default = 100.

Value

results

list element containing the Ds statistics from the observed data comparisons and significance probabilities.

obs_prop

list element containing the observed cumulative proportions for each group.

Drandom

list element containing the D statistics from randomization for each comparison.

Details

Length frequency distributions of fishes are commonly tested for differences among groups (e.g., regions, sexes, etc.) using a two-sample Kolmogov-Smirnov test (K-S). Like most statistical tests, the K-S test requires that observations are collected at random and are independent of each other to satisfy assumptions. These basic assumptions are violated when gears (e.g., trawls, haul seines, gillnets, etc.) are used to sample fish because individuals are collected in clusters . In this case, the "haul", not the individual fish, is the primary sampling unit and statistical comparisons must take this into account.

To test for difference between length frequency distributions from simple random cluster sampling, a randomization test that uses "hauls" as the primary sampling unit can be used to generate the null probability distribution. In a randomization test, an observed test statistic is compared to an empirical probability density distribution of a test statistic under the null hypothesis of no difference. The observed test statistic used here is the Kolmogorov-Smirnov statistic (Ds) under a two-tailed test:

$$Ds= max|S1(X)-S2(X)|$$

where S1(X) and S2(X) are the observed cumulative length frequency distributions of group 1 and group 2 in the paired comparisons. S1(X) and S2(X) are calculated such that S(X)=K/n where K is the number of scores equal to or less than X and n is the total number of length observations (Seigel, 1956).

To generate the empirical probability density function (pdf), haul data are randomly assigned without replacement to the two groups with samples sizes equal to the original number of hauls in each group under comparison. The K-S statistic is calculated from the cumulative length frequency distributions of the two groups of randomized data. The randomization procedure is repeated resamples times to obtain the pdf of D. To estimate the significance of Ds, the proportion of all randomized D values that were greater than or equal to Ds is calculated.

It is assumed all fish caught are measured. If subsampling occurs, the number at length (measured) must be expanded to the total caught.

Data vectors described in arguments should be aggregated so that each record contains the number of fish in each length class by group and haul identifier. For example,

group tow length number
North 1 10 2
North 1 12 5
North 2 11 3
North 1 10 17
North 2 14 21
. . . .
. . . .
South 1 12 34

References

Manly, B. F. J. 1997. Randomization, Bootstrap and Monte Carlos Methods in Biology. Chapman and Hall, New York, NY, 399 pp.

Seigel, S. 1956. Nonparametric Statistics for Behavioral Sciences. McGraw-Hill, New York, NY. 312 p.

See Also

clus.str.lf

Examples

Run this code
# NOT RUN {
data(codcluslen)
clus.lf(group=codcluslen$region,haul=c(paste("ST-",codcluslen$tow,sep="")),
 len=codcluslen$length, number=codcluslen$number, 
 binsize=5,resamples=100)
# }

Run the code above in your browser using DataLab