Hello,
I get an error running the template for the 1levelunorderd multinomial logit with eStat. I have attached the errors reported in StatJR and the commands reported in the command window. I would appreciate any help available figuring out what is going on. Thanks.
Kofi
eStat Error running 1levelundordered multinomial logit

 Posts: 12
 Joined: Tue Jan 07, 2014 5:28 pm
eStat Error running 1levelundordered multinomial logit
 Attachments

 StatJR error.txt
 (18.34 KiB) Downloaded 58 times

 Posts: 1250
 Joined: Mon Oct 19, 2009 10:34 am
Re: eStat Error running 1levelundordered multinomial logit
Looking at the model and subsequent error messages it looks like it is missing the prior for alpha_2:
I will need to go through the template to try to work out why this is.
Code: Select all
model
{
for(i in 1:length(couple_ideal)) {
dummy[i] ~ dcatun3(p1[i], p2[i], p3[i],r1[i],r2[i],r3[i])
ln(p1[i]) < constant[i] * alpha_0
ln(p2[i]) < constant[i] * alpha_1
ln(p3[i]) < constant[i] * alpha_2
}
# Priors
alpha_0 ~ dflat()
alpha_1 ~ dflat()
}

 Posts: 1250
 Joined: Mon Oct 19, 2009 10:34 am
Re: eStat Error running 1levelundordered multinomial logit
Can you please let me know how many categories you have in your unordered response, and what you have chosen as the base category? I have a feeling that it isn't correctly excluding the base from the dcatun3 line, but is for the priors.

 Posts: 12
 Joined: Tue Jan 07, 2014 5:28 pm
Re: eStat Error running 1levelundordered multinomial logit
Hi Chris,
Thank you for the prompt response. I have three categories  1, 2 and 4. 4 is the excluded category.
Thank you for the prompt response. I have three categories  1, 2 and 4. 4 is the excluded category.

 Posts: 12
 Joined: Tue Jan 07, 2014 5:28 pm
Re: eStat Error running 1levelundordered multinomial logit
Hi Chris,
Following your comment, I recoded the categories of the dependent variable to be 1,2 and 3 with 3 as the excluded category and that appears to fix the problem.
Kofi
Following your comment, I recoded the categories of the dependent variable to be 1,2 and 3 with 3 as the excluded category and that appears to fix the problem.
Kofi