Help using Base SAS procedures

Proc MCMC Error- response variable does not produce positive likelihood value

Reply
Occasional Contributor
Posts: 7

Proc MCMC Error- response variable does not produce positive likelihood value

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;

hello all,

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.

Ask a Question
Discussion stats
  • 0 replies
  • 161 views
  • 0 likes
  • 1 in conversation