biodyn-fit: fit

diagsFnR Documentation

fit

Description

Estimates parameters biodyn class by fitting catch and CPUE indices

Usage

diagsFn(res)

Arguments

object

an object of class biodyn

index

an FLQuant, FLQuants or data.frame object with CPUE indices

...

other arguments

Examples

## Not run: 
   #simulate an object with known properties
   bd=sim()
   bd=window(bd,end=49)
   
   #simulate a proxy for stock abundance
   cpue=(stock(bd)[,-dims(bd)$year]+stock(bd)[,-1])/2
   cpue=rlnorm(1,log(cpue),.2)
   
   #set parameters
   setParams(bd) =cpue
   setControl(bd)=params(bd)
   control(bd)[3:4,"phase"]=-1
   
   #fit
   bd=fit(bd,cpue)

## End(Not run)

laurieKell/mpb documentation built on Sept. 9, 2023, 9:47 p.m.