Description Usage Arguments Value See Also Examples
View source: R/plastic_estimation.R
plastic.prev.prob
estimates the prevalence probability of plastic
from a randomly selected sample of absence/presence observations of plastic
debris.
1 | plastic.prev.prob(plastic_abs_pres, num_sample)
|
plastic_abs_pres |
numeric vector, containing a binary values with 0 or 'no' for absence of plastic, and 1 or 'yes' for presence of plastic. |
num_sample |
integer value, specifying the number of samples to randomly draw from the observations. |
Prevalence probability of plastic debris in a given sample size.
1 2 | plastic.prev.prob(rbinom(1000,1,0.5), 1)
plastic.prev.prob(rbinom(1000,1,0.5), 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.