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....)
PcaHi dears, I would like to have help with the PCA. I have a dataset with ten variables, most of all f…
How to design a correct twoway scatter graph?Good morning to the community. I would like to design a graph like this:Array But I would like fir…
How to specify residual correlation structure in glmHello all, I'm trying to fit a Poisson model to the rate of hospitalizations for children under 5 y…
Bootstrapping s.e. with country FEs - Two-stage estimation with fractional logit in second stage.Hi, I am running a two stage regression, where the first stage is a linear regression of a price in…
Interaction termHi Everyone! I try to run a regression with an interaction variable in Stata. The interaction term …
Subscribe to:
Post Comments (Atom)
0 Response to Creating a new variable (that changes value in every 3 days....)
Post a Comment