getlogK | R Documentation |
This function can be applied to a list
or bdmData
object to provide a rough estimate of ln(K).
getlogK(object, ...) ## S3 method for class 'bdm' getlogK(object, ...) ## S3 method for class 'list' getlogK(object, r, interval, ...)
object |
either a |
... |
additional arguments to generic function |
r |
an assumed value for the intrinsic growth rate r |
This function assumes a logistic production function and applies a grid search over ln(K) = (3, 30) using a least-squares measure of fit. The value for intrinsic growth must be provided as an input and would usually be obtained through a call to rCalc
in the lhm package.
# get some data data(albio) dat <- bdmData(harvest = albio$catch, index = albio$cpue, time = rownames(albio)) # default model mdl <- bdm() # extract logK from # bdm object getlogK(mdl) # extract with data mdl@data <- dat getlogK(mdl) # calculate logK from # catches and assumed r getlogK(dat, r = exp(-1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.