Hi
I'm working on a input dataset from a questionnaire.
Some variables in the questionnaire is required to answer. Does the person not answer that required question then all the other variables become missing or zero.
I really want to replace zero variables with . after that not answered required question.
So basically a code that says: "After last required question that is not answered all variables after that var has to be replaced with missing instead of zero "
Related Posts with Reset variables to missing after last non zero variable in a row
How to manipulate forest plot / Metaprop ?Dear, my second post on statalist I run a metaprop - outcome below. When I use random effect model …
Grouped data to individal patient dataI have some binary grouped data like events1, events2, n1, n2 (see below). But I want to translate i…
Forvalues questionHello, I just want to check I have got some code right that I had been having some problems with I…
Is it possible to make the computer game "pong" in stata?I'm trying to make a (simplified) version of the 1972 arcade game "Pong" in Stata but I've run into …
30 day windows using columnsHi , I dont think -rangestat-will work for this issue using the -datex- output provided below I wou…
Subscribe to:
Post Comments (Atom)
0 Response to Reset variables to missing after last non zero variable in a row
Post a Comment