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
Re: Converting a string variable to a date variableHello, My date variable (moyr) could not be used when I declared my dataset to be monthly panel dat…
Comparing the code of reg and reghdfe in a panel data ?I have two sets of code as below, I am wondering what are the differences between these two sets of …
Specific Help in Merging my Two DatasetsHello Generous people on this Forum, I am trying to merge these two databases found herehttps://dri…
Appending Files in a Folder for Multiple FoldersHello All, I have multiple folders, each of which I would like to separately loop over and append a…
Fixed effectsDear forum, I have a urgent question. I am writing my thesis about cross-border M&A. Hence, I u…
Subscribe to:
Post Comments (Atom)
0 Response to Reset variables to missing after last non zero variable in a row
Post a Comment