STATA commands Flashcards
1
Q
How do we merge y and x (3 different types)
A
merge m:1/m:m/1:1 x using y
2
Q
How do we create a dummy variable for x?
A
gen x=0
replace x=1 if (insert the dummy)
3
Q
How do we group together x and y?
A
egen x=group(y)
4
Q
How do we generate a log of x?
A
gen l_x = log(x+1)