Hello,
I have a dataset that includes data from a baseline survey, post-intervention survey, and one-year post-intervention survey, with one observation per participant and the survey variables all named according to the time period (i.e. pre_* for baseline, post_* for post-intervention, follow_* for one-year post-intervention). Missing values are coded "."
I'm trying to create a variable that indicates whether any answers were submitted for a given survey (e.g., survey1 = 1 if any pre_* questions answered, 0 otherwise; survey2 = 1 if any post_* questions answered, 0 otherwise; survey3 = 1 if any follow_* questions answered, 0 otherwise). Does anyone have any advice on how I could do so?
Thanks!
Related Posts with Generating a 1-0 variable if any of a varlist has a value
Binscatter plot warningHello, I just want to know whether getting the following warning is normal for binscatter plots, I …
Panel data - constant dependent variable across individuals not timeHello, I wanted to seek for someone's advice as I have run into a number of problems with my analys…
Slope coefficients for different quintiles of ranksHello all, I have an unbalanced panel data set on funds and their respective 3 Factor alphas for ea…
Hardware to optimize processing large text filesHi list, I'm buying new machines for my lab and would like to optimize the speed with which we proce…
nehurdle available on SSCHi everybody, I would like to announce that thanks to Kit Baum, nehurdle is now available at SSC. …
Subscribe to:
Post Comments (Atom)
0 Response to Generating a 1-0 variable if any of a varlist has a value
Post a Comment