model_code | R Documentation |
Extracts the Stan code from a StanTVA model object.
model_code(object, type)
## S4 method for signature 'stanmodel'
model_code(object, type = c("stan", "stan2", "cpp"))
## S4 method for signature 'stanfit'
model_code(object, type)
object |
A StanTVA model object or fit. |
type |
The type of code to return ( |
A RStanTVA model code object (stan
), or a string containing the code (stan2
or cpp
).
model_code(stanmodel)
: method
model_code(stanfit)
: Extract code from a model fit
model <- stantva_model(locations = 2)
model_code(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.