Hello,
I am working with survey data and I want to be able to analyze at which points in the survey respondents are abandoning the survey. My idea was to designate certain missing values as "stop points" if all of the variables ahead of it are also missing. So, say my data looks like this below. For observation 2, for instance, I would like to signal variable AJ as the place where the respondent stopped answering the survey (and recode it to be .a, or something like that).
Array I'm wondering if someone can help me code a loop to apply this to all of my variables. How do I tell Stata to look for missing values in all of the variables AHEAD of a variable?
Thanks in advance for any help!
P.S. I'm so sorry for the screenshot, I can't get the formatting right on the data example I'm trying to post.
Related Posts with Loop for determining where a respondent abandoned the survey
estpost ttest with multiple conditions and columnsDear Statalist Community, I'm looking to make a summary statistics table for some of my key variabl…
rollregHi. I'm using rollreg. There are a number of important (mutually exclusive) parameters to set: move…
Controlling for time vs. clustered/robust SEConducting a regression on panel data using xtreg... can someone help me out with the theory behind …
Create new Variable: Migration flowsHi, I have a dataset in long form with the variables country of origin, destination country, stock …
Outreg2 titles and panelsDear Stata wizards, I am replicating stata results from a paper and I am unsure how to add "sub col…
Subscribe to:
Post Comments (Atom)
0 Response to Loop for determining where a respondent abandoned the survey
Post a Comment