Probit regression with data augmentation in stan
I am attempting to do a probit model with data augmentation using stan. This is where we have outcomes y either 0/1 that tell us the sign of the latent variable ystar . This is what I have so far, but I'm not sure how to add information in the model section about y . Any thoughts? data { int<lower=0> N; // number of obs int<lower=0> K; // number of predictors int<lower=0,upper=1> y[N]; // outcomes matrix[N, K] x; // predictor variables } parameters { vector[K] beta; // beta coefficients vector[N] ystar; // latent variable } model { vector[N] mu; beta ~ normal(0, 100); mu <- x*beta; ystar ~