data_block | R Documentation |
Automate writing the STAN data block from your data.
data_block(x)
x |
A nlist |
A string
mod_data <- nlist::as_nlist(list(
X = c(1L, 2L, 3L, 4L),
Y = c(1.2, 7.3, 8.9, 2.6),
nObs = 4L
))
data_block(mod_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.