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
Gravity Model International TradeI am trying to estimate the gravity model of international trade using Fixed Effect Model. I have da…
Rebalance Portfolios based on Annual Carbon Emission and Size TrecilesHi all! I need some help with figuring out how to calculate the portfolio returns. Below you can fi…
Repeated time values within panel error in ESS cumulative fileI'm trying to run a fixed effects panel data analysis with a cumulative file of the European Social …
Merging Specific File Names onlyHello Everyone, Hope you all are doing well. I have this somewhat confusing query which I am tryin…
Combine graph plot yearsHi guys, I have 9 variables that I'd like to plot with tsline. The data is monthly and I am not abl…
Subscribe to:
Post Comments (Atom)
0 Response to Transforming Variables
Post a Comment