Description Usage Arguments Details Value Note Author(s) See Also Examples
Compiles the generated C source code of a parsed model using the inline package.
1 |
cout |
A parsed model. |
name |
A string indicating the name of the compiled function, defaults to "derivs". |
Uses the inline package to compile the generated c code.
Returns a compiled function named as the name
argument and
is included in R's environment automatically, i.e. no
assignment is needed. The compiled function
has the following form in C:
1 2 |
We note again that there is no need to assign the return value to a
variable. The compmod
function loads the compiled function
directly to the R's environment.
Vasileios Giagos
The function parsemod
generates the c code for the
models. The transition density can be calculated with
calcdens
and MLEs are obtained with
optmod
.
1 2 3 4 5 | ## Not run:
##After generating a model "cout"
compmod(cout,"derivs") #no need to assign the return value
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.