View source: R/estimateConsumption.R
estimateConsumption | R Documentation |
Function for estimating consumption model
estimateConsumption(data, parameters, ...)
data |
list of data inputs |
parameters |
list of parameters |
... |
additional arguments for TMB::MakeADFun |
list of TMB object and optimization object
## Not run:
data("consumptionData")
par.list <- list(
logCmax = log(1.2),
logChalf = log(1e2),
logalpha = log(2),
logbeta = log(2),
logSigma = log(1e3)
)
cFit <- estimateConsumption(data = consumptionData, parameters = par.list, silent =TRUE,
map = list(logalpha = factor(NA),
logbeta = factor(NA)))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.