search for: answer_2_neg

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

Did you mean: answer_1_neg
2007 May 05
1
dynamically specifying regressors/RHS variables in a regression
...l. 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 vector. The only way I can think of to wr...