Description Usage Arguments Details Value See Also Examples

View source: R/correlation_grab.R

This function calculates the resulting serial correlation between grab samples each having `r`

primary increments with original serial correlation `d`

.

1 | ```
correlation_grab(r, p, d)
``` |

`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 |

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.

Serial correlation between grab samples

prob_detect_single_grab

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.