[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: RE: survey completion "flag"
Let me push my luck a little... If this is the right way to write
the code (to evaluate which of 170 questions is the last question
egen LASTRSP = rlast(Q001-Q170)
... Is there a way to have it return the variable name (which is the
question number) instead of the value of the response?
Thanks for your help! Marilyn M.
> Have a look at -egen, rlast()-.
> Marilyn Matevia
> > I am a very new user of Stata, so I apologize in advance if this
> > a dumb question. I'm still learning how Stata "thinks"
> > SAS) and can't figure out how to tackle this:
> > I have a data set of responses to a very long (170 questions)
> > with many nested skip patterns, and about 2200 respondents.
> > working out the skip codes, I still have many "missing"
> > for some items, and figure these are due to incomplete surveys.
> > want to create some kind of "completion flag" to see which
> > respondents make it to the end of the survey, and - if they
> > to see which question is the respondent's last (which is
> > by the skip patterns).
> > I'm just not coming up with a sensible way to do this in Stata.
> > someone point me in the right direction?
> * For searches and help try:
> * http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
* For searches and help try: