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.