Skip to content

Instantly share code, notes, and snippets.

@chvandorp
Created November 19, 2023 16:49
test stan file for the stanc compiler and Dirichlet-Multinomial distrubution
data {
int d_int;
array[d_int] int d_int_array;
vector[d_int] d_vector;
}
transformed data {
real transformed_data_real;
transformed_data_real = dirichlet_multinomial_lpmf(d_int_array | d_vector);
}
parameters {
vector[d_int] p_vector;
real y_p;
}
transformed parameters {
real transformed_param_real;
transformed_param_real = dirichlet_multinomial_lpmf(d_int_array | d_vector);
transformed_param_real = dirichlet_multinomial_lpmf(d_int_array | p_vector);
}
model {
y_p ~ normal(0, 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment