I have been struggling for a long time now to get the significance statistics for my latent class model using STATA and keep getting the following error:
lclogitml
sp_choice_d is not a 0/1 variable which equals 1 for the chosen alternative.
r(450);
I have gone over my data and my variable sp_choice_d is binary and only has 0/1 values. I have formatted my data according to "Practical Issues in Conducting a Discrete Choice Experiment" by Ryan et al. and am running out of ideas for what is causing the error message. I have installed Glamm, I get lclogit output, lclogitpr works fine, but these are all worthless without the lclogitml statistics.
For reference, the following is the lclogit command I am using. I should also point out that I am using a three alternative choice question but tab sp_choice_d shows an even 2/3 distribution between 0 and 1 values (as it should).
lclogit sp_choice_d asc_b asc_c res_ia res_ib er_ia er_ib sMarsh sGrass oyster cost, group(c_id) id(reference_id) nclasses(3) membership(coast_zone tax_OP govt_OP CC_NEGperc ///
front none female own income age_sum house white yrs_es) seed(1234567890)
Any ideas would be greatly appreciated!
I have attached some of my model output for reference (ignore the lclogit model errors, these were just a test and have since been corrected) and a screenshot of my data format:
Array
NOTE: asc_a and asc_b are alternative specific constants. The rest of my variables are not shown.
[ATTACH]temp_3448_1447339474267_599[/ATTACH]
lclogitml
sp_choice_d is not a 0/1 variable which equals 1 for the chosen alternative.
r(450);
I have gone over my data and my variable sp_choice_d is binary and only has 0/1 values. I have formatted my data according to "Practical Issues in Conducting a Discrete Choice Experiment" by Ryan et al. and am running out of ideas for what is causing the error message. I have installed Glamm, I get lclogit output, lclogitpr works fine, but these are all worthless without the lclogitml statistics.
For reference, the following is the lclogit command I am using. I should also point out that I am using a three alternative choice question but tab sp_choice_d shows an even 2/3 distribution between 0 and 1 values (as it should).
lclogit sp_choice_d asc_b asc_c res_ia res_ib er_ia er_ib sMarsh sGrass oyster cost, group(c_id) id(reference_id) nclasses(3) membership(coast_zone tax_OP govt_OP CC_NEGperc ///
front none female own income age_sum house white yrs_es) seed(1234567890)
Any ideas would be greatly appreciated!
I have attached some of my model output for reference (ignore the lclogit model errors, these were just a test and have since been corrected) and a screenshot of my data format:
Array
NOTE: asc_a and asc_b are alternative specific constants. The rest of my variables are not shown.
[ATTACH]temp_3448_1447339474267_599[/ATTACH]