Compile the computation graph defined by the specified target variables into a differentiable log-joint-density function suitable for HMC/NUTS inference.
Usage
model(..., precision = c("float32", "float64"))Examples
if (FALSE) { # \dontrun{
alpha <- normal(0, 10)
beta <- normal(0, 5)
sigma <- half_cauchy(1)
y <- as_data(rnorm(100))
x <- as_data(rnorm(100))
mu <- alpha + beta * x
distribution(y) <- normal(mu, sigma)
m <- model(alpha, beta, sigma)
} # }
