search for: answer_1_pos

Displaying 1 result from an estimated 1 matches for "answer_1_pos".

2007 May 05
1
dynamically specifying regressors/RHS variables in a regression
...different number of rows per individual. For each number of questions, I want to run a logit on all the individuals who saw that many questions, predicting whether they choose to answer anymore afterwards by their choices on the earlier questions. the second logit would look like answered_only_2~answer_1_pos+answer_1_neg+answer_2_pos+answer_2_neg This will result in over 100 regressions, with different numbers of RHS variables. I'd like to iterate over the sequence of numbers and run a logit for each, but I can't find any means for dynamically generating the RHS variable from an array, or vec...