Hi all,
I am looking at sickness absence in various occupations in LFS data. The dataset contains the vairables ILLDAYS1-7 detailing whether an individual was ill on that day of the week with ILLDAYS1 being the first day of the week the individual was ill and ILLDAYS7 being the 7th day of the week they were ill on. Ideally, I would like to aggregate ILLDAYS into a single variable that tells me how many days of the reference week the individual was ill for. Is there a way I can do this?
Thanks
Related Posts with How to aggregate variables into a single variable
Coefplot dropping first interaction w/ reghdfeDear colleagues, Using coefplot after running reghdfe, interaction terms are being dropped. For ex…
Generating a Variable of Respondents MeansI am currently trying to generate a new variable consisting of respondents means. This new variable …
Predicting DV by keeping covariates at mean+-SD and visualisationDear Statalists, This is my very first post on the forum. Here goes my problem: I want to generate…
Frequency detection problemI have data about doctors and their patients. Every doctor has an ID. And one doctor could treat sev…
Creating a dummy variableHi there, I have a date variable formatted as 1980m1 etc. I want to create a dummy variable which is…
Subscribe to:
Post Comments (Atom)
0 Response to How to aggregate variables into a single variable
Post a Comment