View source: R/plotsample_est.R
plotsample_est | R Documentation |
Estimates abundance as n/p, where n is total count and p inclusion probability.
Also returns a confidence interval, estimated standard error and CV, using one of
four possible methods (see argument method
.)
plotsample_est(
n,
p,
alpha = 0.05,
method = "lognormal",
dbn = "binomial",
B = 999,
Nmult = 3
)
n |
Vector of counts in plots |
p |
Proportion of survey region covered by plots |
alpha |
The significance level (defaults to |
method |
If 'normal', the estimator is assumed to be normally distributed with
variance calculated assuming the distribution given by |
dbn |
If 'binomial', the count is assumed to be binomially distributed (for
variance estimation, and if |
B |
Number of bootstrap replicates. |
Nmult |
multiple of estimate beyond which probability of getting observed data is assumed to be zero (just for computational covenience when calculating exact CI). |
The function returns a list with the following elements:
$Nhat : Estimated abundance.
$se.Nhat : Standard error of the estimator.
$cv.Nhat : Coefficient of variance of the estimator.
$ci.Nhat: Confidence interval.
David Borchers
plotsample_est(n=10, p=0.5, method='lognormal')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.