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
which option in esttab that display number of observation with comma?When running esttab to got the table of results, I faced the problem of displaying the number of obs…
Collapsing concatenated distinct values by groupI would like to collapse string variables after obtaining a concatenated list of all distinct values…
How to make the coefficients displaying more aesthetic ?When I run the variable x on variable y, I have the coefficient of x is 0.0000569*** (15.28) I am …
for loop in mataDear statalist members I am new to Mata language, in the code below i simulate a VAR(2) using Stata …
How to use esttab to display the independent variables under other name?I have a multi regressions as below and using esttab at the end to produce a publication-style repor…
Subscribe to:
Post Comments (Atom)
0 Response to Gen variable
Post a Comment