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
Plotting multiple bar graphs with CII want to plot crude and age-adjusted rates with CI on a single graph. I'm using the following code …
How to create individual panel data through merging two cross sectionsHello All I am in need of desperate help regarding my model. I have cross-section data done for two …
Problem Renaming Variables That Contain "."Hello, I am using the 2018 dataset from Latinobarometro. A lot of variables are named something lik…
how to deal with '' xthenreg'' for dynamic threshold modelsDear all Finally we get the stata' command to deal with the endogeneity issue for threshold model, …
Trying to create a Unique Identifier for a Survey Data. (Have tried following other posts but nothing has worked)Hello, I hope this post finds you well ! The version of STATA being used is 14.2 The following is a…
Subscribe to:
Post Comments (Atom)
0 Response to Adding Dummy Variables
Post a Comment