Package: ecocbo 1.0.0

ecocbo: Calculating Optimum Sampling Effort in Community Ecology

A system for calculating the optimal sampling effort, based on the ideas of "Ecological cost-benefit optimization" as developed by A. Underwood (1997, ISBN 0 521 55696 1). Data is obtained from simulated ecological communities with prep_data() which formats and arranges the initial data, and then the optimization follows the following procedure of four functions: (1) prep_data() takes the original dataset and creates simulated sets that can be used as a basis for estimating statistical power and type II error. (2) sim_beta() is used to estimate the statistical power for the different sampling efforts specified by the user. (3) sim_cbo() calculates then the optimal sampling effort, based on the statistical power and the sampling costs. Additionally, (4) scompvar() calculates the variation components necessary for (5) Underwood_cbo() to calculate the optimal combination of number of sites and samples depending on either an economic budget or on a desired statistical accuracy. Lastly, (6) plot_power() helps the user visualize the results of sim_beta().

Authors:Edlin Guerra-Castro [aut, cph], Arturo Sanchez-Porras [aut, cre]

ecocbo_1.0.0.tar.gz
ecocbo_1.0.0.zip(r-4.7)ecocbo_1.0.0.zip(r-4.6)ecocbo_1.0.0.zip(r-4.5)
ecocbo_1.0.0.tgz(r-4.6-any)ecocbo_1.0.0.tgz(r-4.5-any)
ecocbo_1.0.0.tar.gz(r-4.7-any)ecocbo_1.0.0.tar.gz(r-4.6-any)
ecocbo_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
ecocbo/json (API)
NEWS

# Install 'ecocbo' in R:
install.packages('ecocbo', repos = c('https://arturosp.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/arturosp/ecocbo/issues

Datasets:
  • betaNested - Data set containing the results of applying ecocbo::sim_beta() to a nested factors experiment.
  • dataFish - Data set containing results from the PRCRMP.
  • epiBetaR - Data set containing the results of applying ecocbo::sim_beta() to a single factor experiment.
  • epiDat - Dataset on species count of marine communities.
  • macrofDat - Dataset on species count of coastal macrofauna.
  • simResults - Data set containing the results of applying ecocbo::prep_data().
  • simResultsNested - Data set containing the results of applying ecocbo::prep_data() to a nested factors experiment.

On CRAN:

Conda:

4.30 score 7 scripts 177 downloads 6 exports 127 dependencies

Last updated from:ff4f08876f. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK188
source / vignettesOK217
linux-release-x86_64OK224
macos-release-arm64OK191
macos-oldrel-arm64OK187
windows-develOK184
windows-releaseOK145
windows-oldrelOK140
wasm-releaseOK142

Exports:plot_powerprep_datascompvarsim_betasim_cboUnderwood_cbo

Dependencies:abindaskpassbackportsbase64encbootbroombslibcachemcallrcarcarDatacliclustercolorspacecorrplotcowplotcpp11crayoncrosstalkcurldata.tableDerivdigestdoBydplyrevaluatefarverfastmapfilelockfontawesomeforecastFormulafracdifffsgenericsggplot2ggpubrggrepelggsciggsignifgluegridExtragtablehighrhmshtmltoolshtmlwidgetshttrisobandjquerylibjsonliteknitrlabelinglaterlatticelazyevallifecyclelme4lmtestlpSolvemagrittrMASSMatrixMatrixModelsmemoisemgcvmicrobenchmarkmimeminqamodelrnlmenloptrnnetnumDerivopensslotelparabarparallellypbkrtestpermutepillarpkgconfigplotlypolynomprettyunitsprocessxprogresspromisespspurrrquantregR6rappdirsrbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrlangrmarkdownrstatixS7samplingsassscalesSparseMSSPstringistringrsurvivalsystibbletidyrtidyselecttimeDatetinytexurcautf8vctrsveganviridisLitewithrxfunyamlzoo

ecocbo-guide

Rendered fromecocbo-guide.Rmdusingknitr::rmarkdownon May 27 2026.

Last update: 2025-11-21
Started: 2023-05-04