View source: R/set_selectivity.R
set_selectivity | R Documentation |
Specify model and parameter configuration for selectivity
set_selectivity(input, selectivity)
input |
list containing data, parameters, map, and random elements (output from |
selectivity |
(optional) list specifying options for selectivity blocks, models, initial parameter values, parameter fixing/mapping, and random effects (see details)
|
a named list with same elements as the input provided with selectivity options modified.
prepare_wham_input
## Not run:
wham.dir <- find.package("wham")
path_to_examples <- system.file("extdata", package="wham")
asap3 <- read_asap3_dat(file.path(path_to_examples,"ex1_SNEMAYT.dat"))
input <- prepare_wham_input(asap3, NAA_re = list(sigma = "rec"))
sel <- list(model=rep("logistic",input$data$n_selblocks),
initial_pars=rep(list(c(3,3)),input$data$n_selblocks),
fix_pars=rep(list(NULL),input$data$n_selblocks))
input <- set_selectivity(input, selectivity = sel) #logistic selectivity for all selectivity blocks
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.