updsr: updsr()

View source: R/OMsim.R

updsrR Documentation

updsr()

Description

updates sr in brp after changing biology

Usage

updsr(object, s = 0.7, v = NULL)

Arguments

object

An *FLBRP*

s

assumed steepness s

v

input option new SB0

Value

FLBRP

Examples

data(ple4)
sr <- srrTMB(as.FLSR(ple4,model=bevholtSV),spr0=mean(spr0y(ple4)))
brp = FLBRP(ple4,sr)
s = sr@SV[[1]]
params(brp)
# change
m(brp) = Mlorenzen(stock.wt(brp),Mref=0.15)
brpupd =updsr(brp,s)
params(brp)

Henning-Winker/FLRef documentation built on Dec. 16, 2024, 7:23 p.m.