Hi
I would like to keep multiple VarList if the content is >0 or < 366, so I have eg DaysSinceCough and various numbers denoting the days between the symptom and diagnosis, and the next column is DaysSinceAnaemia and would like to keep across the columns those values
I have tried
keep if (days_since_CP, days_since_Fatigue, days_since_HV, days_since_SVCO, days_since_WL, days_since_anaemia, days_since_cough) > 0
but obviously this doesn't work where it would work for a single variable. I am sure this is very easy but I am a novice so would appreciate if you can help. Ideally I would like a syntax that allows 0< varlist1, varlist2, varlist...<366
Thanks!
I would like to keep multiple VarList if the content is >0 or < 366, so I have eg DaysSinceCough and various numbers denoting the days between the symptom and diagnosis, and the next column is DaysSinceAnaemia and would like to keep across the columns those values
I have tried
keep if (days_since_CP, days_since_Fatigue, days_since_HV, days_since_SVCO, days_since_WL, days_since_anaemia, days_since_cough) > 0
but obviously this doesn't work where it would work for a single variable. I am sure this is very easy but I am a novice so would appreciate if you can help. Ideally I would like a syntax that allows 0< varlist1, varlist2, varlist...<366
Thanks!
Comment