stepwise: stepwise

View source: R/stepwise.R

stepwiseR Documentation

stepwise

Description

very simple step function used for estimating selectivity (i.e. independent proportions for each age or length). The function structure allows it to be passed to fn_sel in sel_comp.

Usage

stepwise(x, par = NULL)

Arguments

x

numeric vector (e.g. )

par

named vector of parameters

Note

This is really a dummy function to use as fn_sel in sel_comp

Author(s)

Nikolai Klibansky

Examples

## Not run: 
x <- 1:10
parms <- setNames(round(lgs(x,1,median(x)),2),paste0("a",x))
stepwise(x=x,par=parms)

## End(Not run)

nikolaifish/bamExtras documentation built on July 21, 2023, 8:26 a.m.