edstan_model_code {edstan} | R Documentation |
Read and print the code for an edstan model
Description
This function reads a Stan file from the 'inst/extdata/' directory of the package, returning its contents invisibly while optionally printing them.
Usage
edstan_model_code(filename, print = TRUE)
Arguments
filename |
The name of the stan file. |
print |
Whether to print the stan file contents. Default is 'TRUE'. |
Value
Invisibly returns a character vector of the stan file contents.
Examples
# View the Stan code for the Rasch model
edstan_model_code("rasch_latent_reg.stan")
[Package edstan version 1.1.0 Index]