correlation_grab: Serial correlation between grab samples

Description Usage Arguments Details Value See Also Examples

View source: R/correlation_grab.R

Description

This function calculates the resulting serial correlation between grab samples each having r primary increments with original serial correlation d.

Usage

1

Arguments

r

number of primary increments in a grab sample or grab sample size

p

limiting fraction or proportion of contaminated increments

d

serial correlation of contamination between the primary increments

Details

The serial correlation between blocks (grab samples) is given by d_g as

d_g = [dp(1-p(1-d))^{r-1}]/p_d

where p_d is the probability of detection in any of the block (grab sample) which is calculated by using prob_detect_single_grab.

Value

Serial correlation between grab samples

See Also

prob_detect_single_grab

Examples

1
2
3
4
r <-  25
p <-  0.005
d <-  0.99
correlation_grab(r, p, d)

grabsampling documentation built on March 13, 2020, 5:07 p.m.