Hi All,
So I am new to using Stata. I have a preset excel file and wanted to create dummy variables using if else statements for the year column. So for eg, if the year is 1980, all observations having Year=1980 should have a 1 in the 1980 column, otherwise 0. But everytime I try creating such a statement I get an error "no; data in memory would be lost"
Requesting your help for the same.
Thanks in Advance.
Related Posts with Adding Dummy Variables
Problem with a counterfactual analysis of the Theil-index decompositionHi Statalist, I'm writing a paper concerning changes in in wage-inequality over time in relation to …
Bootstrapping with lots of dummies! Help!Reviewer asked me to bootstrap standard errors, but I have 116 firm dummies plus 15 time dummies in …
Help with asdoc - regression tablesDisclaimer: asdoc is a user written command by Dr. Ataullah Shah I am regressing with a categorical…
Number of unique firms/ industriesHi I have a panel data. Gvkey is an identifier for firms and Fyear is an identifier for year. Sic is…
ivregress and suestHi, I'm trying to use Oaxaca decomposition and within that, I'm trying to estimate the models using…
Subscribe to:
Post Comments (Atom)
0 Response to Adding Dummy Variables
Post a Comment