View source: R/bootstrapping.R
bootsMean | R Documentation |
Statistics from bootstrap replicates.
bootsMean(
b,
pointEst,
by_prey_size = FALSE,
n_rep = NA,
do_Diri = FALSE,
minPreyProportion = 0,
Diri_min = 0.001,
excl_diri = NA,
Diri_max = 0.99,
verbose = FALSE
)
b |
Bootstrap diet data set. List of elements of class STOMdiet. |
pointEst |
Diet data estimated without bootstrapping (point estimates of prey weights) |
by_prey_size |
Logical for calculating mean and variance by prey size. FALSE provides statistics by prey species. |
n_rep |
Selected replicates used. If n_rep is a number, 1:n_rep are used, If n_rep is a vector the provided replica numbers are used in the statistics. All replicates are uesed if n_rep is NA (default). |
do_Diri |
Logical for performing statistics assuming the replicates are Dirichlet distributed. |
minPreyProportion |
Lower level for average prey proportion to be kept as a named prey. If lower, the prey weight is allocated to "other" prey. |
Diri_min |
Value to be used in estimating the Dirichelt parameter in case of a zero proportion. |
excl_diri |
Combinations (year, quarter, pred_name, pred_size) where Dirichlet parameters are not estimated. |
Diri_max |
Maximum average proportion for one food item allowed for estimation of of Dirichlet parameters. |
verbose |
Show progress. |
Data set with mean and variance of diets and fit to Dirichlet distribution. Output includes
Variable | Contents |
nboots | Number of bootstrap replicates. |
year | Year. |
quarter | Quarter of the year. |
pred_name | Predator name. |
pred_size | Predator size. |
prey | Prey, prey name and size, if used. |
prey_name | Prey name. |
prey_size | Prey size. |
n_prey_sp | Number of "preys" observed. |
param | Estimated parameters assuming a Dirichlet distribution of bootstrap replicates. |
phi | Estimated precision parameter (sum of param from the Dirichlet distribution). |
mu | Estimated mean value from the Dirichlet distribution. |
mean_w | Mean value of prey weights (proportions) from the bootstrap replicates. |
sd_w | Standard deviation of prey weights (proportions). |
prey_w | Prey weight (proportions) estimated without bootstrapping. |
strata | Strata used for bootstrap. |
n_stom | Number of stomachs available before bootstrap ( from the pointEst data). |
n_sample | Number of samples available before bootstrap. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.