MyNixOS website logo
Description

Life History Analysis Tools.

Estimate aquatic species life history using robust techniques. This package supports users undertaking two types of analysis: 1) Growth from length-at-age data, and 2) maturity analyses for length and/or age data. Maturity analyses are performed using generalised linear model approaches incorporating either a binomial or quasibinomial distribution. Growth modelling is performed using the multimodel approach presented by Smart et al. (2016) "Multimodel approaches in shark and ray growth studies: strengths, weaknesses and the future" <doi:10.1111/faf.12154>.

AquaticLifeHistory

DOI R-CMD-check

AquaticLifeHistory allows users to undertake fisheries life history analyses using contemporary approaches as simple R functions. These analyses currently include length-at-age modelling using a multi-model approach, estimating age-at-maturity and length-at-maturity. The main package functions are:

  • Estimate_Growth() performs length-at-age analyses using a von Bertalanffy growth model, Gompertz model and/or Logistic model.
  • Estimate_Age_Maturity() Estimates age-at-maturity using either binomial maturity or proportion mature data and age.
  • Estimate_Len_Maturity() Estimates age-at-maturity using either binomial maturity or proportion mature data and length.

Installation

You can install the released version of AquaticLifeHistory from Github with:

# install.packages("devtools")
devtools::install_github("jonathansmart/AquaticLifeHistory")

Usage

Perform growth analysis

library(AquaticLifeHistory)

# load example data set
data("growth_data")

# Run function with three default model candidates.
# Model parameters, AIC values are returned and a plot with bootstrapped CI's is printed to examine fits.
Estimate_Growth(growth_data)

#> $VonB
#>         Parameter           SE
#> Linf 2439.5652138 50.416331766
#> k       0.1253499  0.006938586
#> L0    659.2971929 14.318722887
#> RSE    97.9461196           NA
#> 
#> $Logistic
#>         Parameter          SE
#> Linf 2163.8640309 26.46867817
#> g       0.2894532  0.01039625
#> L0    727.0885234 13.58771346
#> RSE   110.3850532          NA
#> 
#> $Gompertz
#>        Parameter           SE
#> Linf 2250.136998 32.621706305
#> g       0.207524  0.008455423
#> L0    695.603478 13.779414070
#> RSE   103.855273           NA
#> 
#> $AIC
#>   Model    AICc AIC diff Weight
#> 1    VB 3535.10     0.00      1
#> 2   Log 3605.40    70.30      0
#> 3   Gom 3569.54    34.45      0

Perform age-at-maturity analysis

# load example data set
data("maturity_data")

# Run function to estimate age-at-maturity parameters
Estimate_Age_Maturity(maturity_data)
#>     Estimate        SE
#> A50 13.95113 0.3033328
#> A95 16.53427 0.5321205

# A plot can also be returned with bootstrapped CI's.
Estimate_Age_Maturity(maturity_data, return = "plot")

For further examples of these and other functions use the provided vignettes

browseVignettes("AquaticLifeHistory")
Metadata

Version

1.0.5

License

Unknown

Platforms (75)

    Darwin
    FreeBSD 13
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd13
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd13
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows