I am working with survey dataset. It has 30 people (variable name = dlp, numeric) who start work in different date (variable name= date, data type=date). I would like to create a new variable "work" which reflects the fact that each of the worker complete the work in every 3 days ( represented by Round 1), then continue the same work for next three days (represented by Round 2). And after every 6 days, they take 1 day off. Before they continue with Round 3 work. And this trend is likely to continue till december 2022.
Related Posts with Creating a new variable (that changes value in every 3 days....)
Reshape problem: values of variable j not unique within idHi all, I am trying to generate Dummy variables from a question with multiple responses. Lamentably…
Tagging individuals who migrated in panel dataI have data in long form with information on individual id, time period and cities where they worked…
How to plot overlaying normal distributionsHi all, I'm trying to do something for which I can't really find any previous posts. Basically, I w…
Does STATA REG provide test statistic for Fitness of model and/or homogeneity of residuals and or misspecification?Hello everyone, Does STATA REG provide test statistic for Fitness of model and/or homogeneity of re…
Encountering an error when using local macros in the xtqreg packageGood Evening, I am attempting to pass a varlist into a local macro as follows: Code: local predic…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a new variable (that changes value in every 3 days....)
Post a Comment