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
how to generate the median variable by industry every 3 years?Hello everyone: I am trying to get the median of the sales growth rate for all the companies within…
Tab2xl issuesHello everyone, I've just come across tab2xl and have been trying to include it in a loop to get a …
Generating new variable which estimates the mean of a group of identifiersDear all, I am currently working with a dataset which contains the following variables: id (industr…
Descriptive statistics if command error r(198)Hi everyone, I am trying to create a descriptive statistics table of my data but only for the cases…
Storing estimate values from the total commandHello, I am running the total command for each value of a nominal variable. I am trying to create a…
Subscribe to:
Post Comments (Atom)
0 Response to Gen variable
Post a Comment