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
ordered logit sorted by a binary variable including weightsi am trying to run an ordered logit model with wealth status (categorical) as dependent variable plu…
Marginal effects in Stochastic Frontier AnalysisDear all: I am estimating a panel data SFA using the model proposed by Battese and Coelli (1995). I …
Averaging observations within a column having missing valuesHello there ! I am hoping to get a reply for this since I am struggling with it for quite some time …
Heterogeneous treatment effects with ivregressDear Statalist, I want to calculate treatment heterogeneity in a two-stage-least-square (TSLS) sett…
Moving average between missing variablesHi. I have monitoring data which were collected every three hours, as shown below. I am trying to fi…
Subscribe to:
Post Comments (Atom)
0 Response to Transforming Variables
Post a Comment