shape | R Documentation |
This function can used to access or assign the shape of the generalised production function. The shape is assumed to be fixed on input and is therefore contained within the bdmData
object class as the parameter n.
shape(object, ...) ## S4 method for signature 'bdmData' shape(object, par = "phi") shape(object, ...) <- value ## S4 replacement method for signature 'bdmData,numeric' shape(object) <- value
object |
a |
... |
additional arguments to the generic function |
par |
a character string of either |
value |
a numeric value specifying the value of either |
The bdm package assumes by default a generalised Fletcher-Schaefer hybrid production function. The inflection points occurs at:
φ = B_{MSY}/K = (1/n)^(1/(n-1)).
The discontinuity in the relationship between phi and n is accommodated by assuming φ = 1/e at n = 1.
# initialize bdmData object dat <- bdmData(harvest = 20:30, index = runif(11)) # access default shape shape(dat, 'phi') shape(dat, 'n') # assign shape shape(dat) <- 0.4 shape(dat) shape(dat, 'n')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.