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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do we create a dummy variable for x?

A

gen x=0
replace x=1 if (insert the dummy)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do we group together x and y?

A

egen x=group(y)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do we generate a log of x?

A

gen l_x = log(x+1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly