03-31-2017 11:45 AM
proc mcmc data=SASHELP.MARGARIN seed=159 nbi=1000 nmc=10000 outpost=posterior; parms beta0 0 beta1 0 beta2 0; prior beta: ~ normal(mean=0, var=1e6); p=logistic(beta0+ beta1*brand+ beta2*logprice); model choice ~ binomial(5000,p); run;
i am trying to run the code but getting an error.
ERROR: Observation 1 of the response variable Choice has a value of 1, and it does not produce a positive log-likelihood value. Possible causes are: the response variable is outside of the support set of the likelihood function or some distributional
parameters are missing.
NOTE: The likelihood of Choice is BINOMIAL. The probability parameter is missing.
NOTE: The SAS System stopped processing this step because of errors.
if anyone has a solution to it.