Hi everyone,
I have done some research, but couldn't find the answer to the following issue.
Dataset examplet:
production_start production_end quarter
02apr2007 31dec2011 2009q1
14jan2001 31dec2009 2009q2
18sept1997 21apr2005 2005q2
14oct2005 13mar2008 2005q2
I would like to generate a new variable pdays_q (production days in quarter), which would reflect how many days in the quarter is the factory working.
Thank you!
Related Posts with Gen variable
Running regression including fixed effects and clustered standard errorsHello everyone, i have panel data on a monthly basis over a time span of 14 years for 26 cities. Si…
Is there any other wrapper/executer/(executioner?) apart from -rangestat- that can run Mata functions?Good morning, I recently discovered a nice feature of the user contributed -rangestat-: one can use…
command lasso is unrecognizedDear all I am trying to run the following lasso command: lasso linear outcome $controls, rseed(123…
teffects nnmatch: how to get matched observations via gen() despite some unmatched observationsHi all, I am using teffects nnmatch to match treated units with several controls units. My goal is …
Interaction Effect versus Sub-Group AnalysisHello, I have a basic modelling question related to an analysis I am running using STATA. I do real…
Subscribe to:
Post Comments (Atom)
0 Response to Gen variable
Post a Comment