Description Usage Arguments Value
View source: R/3b_obs_filter_function.R
Based on the observed states obtained using obs_sim
,
introduce a sampling frequency (i.e., insert missing years of data)
1 | obs_filter(params, obs, mimic = NULL, minSRobs = 3, p_age = 0.5)
|
params |
A list created using |
obs |
A list created using |
mimic |
A data frame with columns |
minSRobs |
Numeric vector of length 1: the minimum number of fully observed spawner and recruit brood year pairs allowed for any given stock. Defaults to 3. |
p_age |
Numeric vector of length 1: the fraction of the stocks to be randomly-assigned to have age composition monitored in the same years they have escapement monitored. Defaults to 0.5, and the number of stocks is rounded up if a fractional number is specified. |
A list containing the filtered observed states. Any year not sampled will be stored as an NA.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.