simulate_isd_route: Simulate the ISD for a BBS route

View source: R/simulate_isd.R

simulate_isd_routeR Documentation

Simulate the ISD for a BBS route

Description

Assumes MATSS is installed and working.

Usage

simulate_isd_route(
  route,
  region,
  sd_dat = NULL,
  censusyears = NULL,
  use_th_pars = F,
  isd_seed = NULL
)

Arguments

route

which route

region

which region

sd_dat

optional, provide dataframe with 'id', 'mean_mass', and 'mean_sd'

censusyears

optional, provide a censusyear or years to use. If not provided returns for all years

use_th_pars

default FALSE, whether to use sds estimated with Thibault (2010) parameters. Values are very close.

isd_seed

optional, seed to use when simulating the ISD. If not provided, a seed is randomly chosen and returned with the simulated ISDs.

Details

Uses 'MATSS::get_bbs_route_region_data' to pull in a dataset and then simulates the ISD for a given year, or all years, for that dataset. Assumes MATSS is installed and working and 'MATSS::prepare_bbs_data' has already run.

Value

list of 'isd', 'covariates', and 'metadata'


diazrenata/BBSsize documentation built on April 21, 2022, 7:39 p.m.