HI!
if i want to (using data from January 1971 to December 2020) transform the the month and year variables into a monthly date variable how can I do it in Stata?
I know i have to use the gen date = ym(year,month) and the the
format date %tm command
but I am unsure how to write those with my data being from January 1971 to December 2020
Thank you!
Related Posts with Transforming Variables
 linking data according to dateHi
I am fairly new to stata and I have some data that I am evaluating for patients receiving cancer … linking data according to dateHi
I am fairly new to stata and I have some data that I am evaluating for patients receiving cancer …
 Creating indicator variable for % change previous observationHi
I am attempting to create a variable that indicates a >or<6% change in blood pressure from… Creating indicator variable for % change previous observationHi
I am attempting to create a variable that indicates a >or<6% change in blood pressure from…
 Using GLM with log linkHi all,
I am working on a pooled OLS to get fitted values of the regression. However, Stata gave me… Using GLM with log linkHi all,
I am working on a pooled OLS to get fitted values of the regression. However, Stata gave me…
 Dynamic panel vs. fixed effects estimation?I am currently analyzing the following panel data set with STATA on a daily base:
N = 324 companies… Dynamic panel vs. fixed effects estimation?I am currently analyzing the following panel data set with STATA on a daily base:
N = 324 companies…
 Fixed effects on first stageDear Stata users,
I have one question, which is probably more an econometric question than a Stata q… Fixed effects on first stageDear Stata users,
I have one question, which is probably more an econometric question than a Stata q…
Subscribe to:
Post Comments (Atom)
0 Response to Transforming Variables
Post a Comment