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
Can't generate my string daily data into proper datesHi! I'm a struggling university student in her last year and I've got this assignment worth 100% of …
Frequency of TransactionHello Statlist, hope everyone is in good condition I've yearly dataset about supplier sale from maj…
Generating New Variable with several values of one existing variable using "Wildcards"Hello Statalist, I am trying to generate a new variable based on an existing variable. The existing…
Mixed Results LM-Test and Hausman-TestHello everyone, I am running some regression on my dataset and I do get mixed results which is very…
Problem saving first-stage F-statistic using -outreg2- after -xtivreg2-Dear Statalisters, I have a problem saving with -outreg2- the F-statistic of the first-stage regress…
Subscribe to:
Post Comments (Atom)
0 Response to Adding Dummy Variables
Post a Comment