How to analyze labeled experimental data with different attr
Posted: Sat Jan 06, 2024 2:31 pm
Dear Ngene Software Expert Team, I have a question and seek your assistance. I am a beginner to the choice-metrics model. And I am learning the manual.
My question is not about design, but about how to analyze labeled experimental data with different attributes.
In the manual page 194, an example of syntax is below:
Design
;alts = car, train, bus, tram, bike
;rows = 15
;eff = (mnl,d)
;model:
U(car) = b1[0.3] +
b2[-0.05] * ctime[15,20,25] +
b3[-0.3] * fuel[1,2] +
b4[-0.4] * toll[0,1] /
U(train) = b5[0.2] +
b6[-0.04] * ttime[10,15,20] +
b7[-0.08] * accegg[5,10,15] +
b8[-0.08] * transfer[0,5,10] +
b9[-0.3] * fare[2,3] /
U(bus) = b10[-0.2] +
b11[-0.06] * btime[15,20,25] +
b7 * accegg +
b8 * transfer +
b9 * fare2[1,2] /
U(tram) = b12[0.1] +
b6 * ttime +
b7 * accegg +
b8 * transfer +
b9 * fare2 /
U(bike) = b13[-0.08] * biketime[20,30,40]
$
If I use the above design for a questionnaire survey and collect data. Then eg alternative "car" won't have "accegg", "transfer", "fare" data. for first choice data would like below
resp_id grid set_id alt_id selected travel time accegg time transfer time fuel cost toll cost fare
1 1 1 1 1 15 - - 1 1 -
1 1 1 2 0 10 15 0 - - 2
1 1 1 3 0 15 5 5 - - 1
1 1 1 4 0 20 5 0 - - 1
1 1 1 5 0 30 - - - - -
If I use STATA software to analyze the data above. For attributes that are not available, should I assign a value of 0, leave it empty as a missing value, or assign a value of other missing values?
I don't know if my understanding is correct. In STATA or other statistical analysis software, if there are missing values in a row of data, during modeling, the entire row of data with missing values will be deleted, and only the complete data row will be retained.
But if assigned a value of 0 or other numerical values, is modeling correct?
Looking forward to your reply and answer, thank you very much!
Best Regards
My question is not about design, but about how to analyze labeled experimental data with different attributes.
In the manual page 194, an example of syntax is below:
Design
;alts = car, train, bus, tram, bike
;rows = 15
;eff = (mnl,d)
;model:
U(car) = b1[0.3] +
b2[-0.05] * ctime[15,20,25] +
b3[-0.3] * fuel[1,2] +
b4[-0.4] * toll[0,1] /
U(train) = b5[0.2] +
b6[-0.04] * ttime[10,15,20] +
b7[-0.08] * accegg[5,10,15] +
b8[-0.08] * transfer[0,5,10] +
b9[-0.3] * fare[2,3] /
U(bus) = b10[-0.2] +
b11[-0.06] * btime[15,20,25] +
b7 * accegg +
b8 * transfer +
b9 * fare2[1,2] /
U(tram) = b12[0.1] +
b6 * ttime +
b7 * accegg +
b8 * transfer +
b9 * fare2 /
U(bike) = b13[-0.08] * biketime[20,30,40]
$
If I use the above design for a questionnaire survey and collect data. Then eg alternative "car" won't have "accegg", "transfer", "fare" data. for first choice data would like below
resp_id grid set_id alt_id selected travel time accegg time transfer time fuel cost toll cost fare
1 1 1 1 1 15 - - 1 1 -
1 1 1 2 0 10 15 0 - - 2
1 1 1 3 0 15 5 5 - - 1
1 1 1 4 0 20 5 0 - - 1
1 1 1 5 0 30 - - - - -
If I use STATA software to analyze the data above. For attributes that are not available, should I assign a value of 0, leave it empty as a missing value, or assign a value of other missing values?
I don't know if my understanding is correct. In STATA or other statistical analysis software, if there are missing values in a row of data, during modeling, the entire row of data with missing values will be deleted, and only the complete data row will be retained.
But if assigned a value of 0 or other numerical values, is modeling correct?
Looking forward to your reply and answer, thank you very much!
Best Regards