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
Interactive Year Fixed EffectsHello, I have a regression of the form: xtreg yvariable c.xvariable#i.year c.xvariable i.year `cont…
The meaning of matching under -psmatch2-Dear Statalisters, When pre-processing my data for a propensity score analysis I would like to make…
Problems lagging a variable with PPML estimatorDear all. I am trying to lag a variable with the PPML estimator through the command = L. The varia…
Currency conversion for several time periodsHello everyone, I would like to translate one of my variables (ValueUSD) into values in EUR, depend…
one year entry for each variableDear all, I'm having a problem with the shape of my data. It is formatted as follows: YEAR id1 i…
Subscribe to:
Post Comments (Atom)
0 Response to How to aggregate variables into a single variable
Post a Comment