getFormula | R Documentation |
Returns the formula associated with the specified model.
getFormula(model)
model |
the model name. |
the function corresponding to the formula of the model.
f <- getFormula("gompertz")
# We need to set the parameters (N0, ..., lambda)
f2 <- f(0.1, 2, 0.2, 5)
# And we can then use the function "f(x)" with x the time
f2(4)
## [1] 0.1150952
# The same, more direct
F <- getFormula("gompertz")(0.1, 2, 0.2, 5)
F(4)
## [1] 0.1150952
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.