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
Shaded area xtline graphDear Statalisters, Currently I am working on a panel dataset where my probit model predicts either …
Whether to control for a certain factorHi, I am trying to estimate the effect of different types of managerial incentives (autonomy, perfor…
Saving multiple Excel files as Stata filesIn "C:\Users\budug\OneDrive\Documents\School\Projects ", I have a few Excel files, namely data_2004,…
Loop to open, keep variables, and join different filesHello, I am struggling with the following task that already kept me bugging for hours. This is the…
Piecewise Regression with a median as a knotDear Stata Users My data is in panle format (firm, time). I need to estimate piesewise linear regre…
Subscribe to:
Post Comments (Atom)
0 Response to Create factor dummy variables from a long variable
Post a Comment