powered by
plastic.prev.prob estimates the prevalence probability of plastic from a randomly selected sample of absence/presence observations of plastic debris.
plastic.prev.prob
plastic.prev.prob(plastic_abs_pres, num_sample)
numeric vector, containing a binary values with 0 or 'no' for absence of plastic, and 1 or 'yes' for presence of plastic.
integer value, specifying the number of samples to randomly draw from the observations.
Prevalence probability of plastic debris in a given sample size.
plastic.ci, prevalence_plot
plastic.ci
prevalence_plot
# NOT RUN { plastic.prev.prob(rbinom(1000,1,0.5), 1) plastic.prev.prob(rbinom(1000,1,0.5), 10) # }
Run the code above in your browser using DataLab