Hello,
I was wondering if there is any tool to help convert a statistical model written in Latex to, say, RStan model automatically.
For example, I have the following equation:
y_{n} \sim \mathcal{N}(\alpha + \beta X_{n}, \sigma)
This equation would be converted to the following stan model:
model {
y ~ normal(alpha + beta * x, sigma);
}
Data and parameters would be further defined by the user.
Any pointer would be appreciated. Thanks!