bootsum: Summarise bootstrap results.

View source: R/bootstrap.R

bootsumR Documentation

Summarise bootstrap results.

Description

Produces summarry of bootstrap results

Usage

bootsum(
  bests,
  ests = NULL,
  cilevel = 0.95,
  write.csvs = FALSE,
  Dstrat = unlist(unique(dimnames(bests)[1])),
  dir = getwd()
)

Arguments

bests

output from bs.hmltm.

ests

hmltm object with points estimates.

cilevel

confidence level for confidence intervals by percentile method.

write.csvs

if TRUE, writes each output (see Value below) to separate .csv file.

Dstrat

vector containing the names of strata in which density is to be estimated (must be a subset of unique(dat$stratum).)

dir

directory to which to write outputs if write.csvs is TRUE.

Value

If ests is NULL, returns a list with elements as follows for each statistic in bests:

  • nbad number of bad estimates of the statistic in question that were excluded from the summary. (Bad estimates occur, for example, when a bootstrap sample involves no detections and the estimation function tries to calculate mean group size.)

  • means Bootstrap means of the statistic in question.

  • cv Percentage CVs of the statistic in question.

  • se SEs of the statistic in question.

  • lower Lower cilevel percentiles of the statistic in question.

  • upper Upper cilevel percentiles of the statistic in question.

If ests is an object of class 'hmltm', returns a data frame with rows only for every stratum with detections (and the total) and columns as follows:

  • Stratum stratum number

  • n original number of detections

  • n.L original encounter rate

  • CV.n.L percentage coefficient of variation of encounter rate

  • N.grp original estimate of group abundance

  • CV.N.grp percentage coefficient of variation of group abundance

  • N.grp.lo lower bound of group abundance confidence interval

  • N.grp.hi upper bound of group abundance confidence interval

  • Es original mean group size estimate

  • CV.Es percentage coefficient of variation of mean group size

  • Es.lo lower bound of mean group size confidence interval

  • Es.hi upper bound of mean group size confidence interval

  • N original individual abundance estimate

  • CV.N percentage coefficient of individual abundance

  • N.lo lower bound of individual abundance confidence interval

  • N.hi upper bound of individual abundance confidence interval


david-borchers/hmltm documentation built on Oct. 29, 2023, 9:07 p.m.