dummy variable
Posted: Wed Nov 03, 2021 5:05 pm
Dear Prof.Michiel Blimer,
I did a pilot study; my size sample is 108 (18 respondents who answered six choice task). Now I am trying to estimate the prior in Nlogit through of multinomial logit. But I have a problem; two of my four attributes are variable dummy with four-level each one. So, when I ran the model in Nlogit and tried to use all variables, I got the following error: Error 135: Models - singular Hessian during Newton iterations. I just only can run the model by omitting one level of some of one dummy variable.
My design is unlabelled; and it have four attribute with four level each one:
land: 75,50, 25,10. (dummy variable than represent four kind of percentages of forest)
livestock= four type of livestock= intes, silvo, ext; semi_ext (dummy variable)
willingness to pay(wp)= 0, 2000, 4000, 16000
jaguar: 0,2,5,9
this is an example of my data matriz than I ´m using in Nlogit
alti Id choice land_75 land_50 land_25 land_10. intes. silvo. ext. semi_ext. wp jaguar
alt_1. 1 1 1 0 0 0 0 1 0 0 0 5
alt_2. 1 0 0 0 0 0 0 1 0 0 2000 2
alt3. 1 0 0 0 0 0 0 1 0 0 4000 0
alt_1. 2. 0 1 0 0 0 0 1 0 0 0 5
alt_2. 2 1 0 0 0 0 0 1 0 0 2000 2
alt3. 2 0 0 0 0 0 0 1 0 0 4000 0
alt= alternative of choosing
id= respondents
choice= choose
I appreciate the you can give some orientation about my problem. Thank you very much for you time.
I did a pilot study; my size sample is 108 (18 respondents who answered six choice task). Now I am trying to estimate the prior in Nlogit through of multinomial logit. But I have a problem; two of my four attributes are variable dummy with four-level each one. So, when I ran the model in Nlogit and tried to use all variables, I got the following error: Error 135: Models - singular Hessian during Newton iterations. I just only can run the model by omitting one level of some of one dummy variable.
My design is unlabelled; and it have four attribute with four level each one:
land: 75,50, 25,10. (dummy variable than represent four kind of percentages of forest)
livestock= four type of livestock= intes, silvo, ext; semi_ext (dummy variable)
willingness to pay(wp)= 0, 2000, 4000, 16000
jaguar: 0,2,5,9
this is an example of my data matriz than I ´m using in Nlogit
alti Id choice land_75 land_50 land_25 land_10. intes. silvo. ext. semi_ext. wp jaguar
alt_1. 1 1 1 0 0 0 0 1 0 0 0 5
alt_2. 1 0 0 0 0 0 0 1 0 0 2000 2
alt3. 1 0 0 0 0 0 0 1 0 0 4000 0
alt_1. 2. 0 1 0 0 0 0 1 0 0 0 5
alt_2. 2 1 0 0 0 0 0 1 0 0 2000 2
alt3. 2 0 0 0 0 0 0 1 0 0 4000 0
alt= alternative of choosing
id= respondents
choice= choose
I appreciate the you can give some orientation about my problem. Thank you very much for you time.