Description Usage Arguments Value Examples
Gets names of variable (as opposed to constant) named nodes in JAGS model code
1 |
x |
string of JAGS model code |
type |
string of node type. Must be 'stochastic', 'deterministic' or 'both' (the default). A variable node is any word possibly |
indices |
flag of whether to retain indices |
comment |
A string defining the regular expression to use to filter text from the comment for the node. |
Character vector of unique sorted variable node names
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | model_code <- "data{
Y ~ dpois(2)
}
model {
bLambda ~ dlnorm(0,10^-2) #$\\lamda_{beta}$
for (i in 1:length(x)) { x[i]~dpois(bLambda)
b[i] ~dpois(1)
bc[i] <- b[i]
}
bd <- dpois(1, 1)
}"
jg_vnodes(model_code)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.