Hello I have a variable called categories which is weirdly stored in numeric long (it was a string variable and I used the command encode)
However what I want to do is create 4 category dummy variables: below30
30to60
60to90
90above
(and of course reference categorie below30)
How can I do it?
Related Posts with Create factor dummy variables from a long variable
Issues using esttabHi All, I'm now trying to use esttab for generating the table: Could you please explain why I don't …
Kitagawa-Oaxaca-Blinder Panel Data Model - Interventionist Approach / Oaxaca Panel Suggestions?Does anyone have any advice on implementing Kroger and Hartmann's (August 25, 2021) interventionist …
Referring to the last Variable in A DatasetI'm working with Johns' Hopkins COVID-19 data. It comes in wide format and I must reshape it. The is…
After frlink, can we check which observation in frame2 didn't matach in frame1?After frlink, can we check which observation in frame2 didn't match in frame1? If we use two dataset…
Ivregress 2sls error "r(301)" last estimates not found.Hi everyone, I am using portable Stata 16. I need to run 2sls regression of y on x with instrument …
Subscribe to:
Post Comments (Atom)
0 Response to Create factor dummy variables from a long variable
Post a Comment