/dirichlet_multinomial_lpmf.stan Secret
Created
November 19, 2023 16:49
test stan file for the stanc compiler and Dirichlet-Multinomial distrubution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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