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
Vertical LabelsHello, How do I get the x-axis labels or in this case YearMonth to be vertical? Code: label var na…
Shapley value decomposition (regression-based decomposition)I want to use the Shapley value decomposition approach to estimate the contribution of a set of fact…
Vertical axis label not showing after converting to pdfI have created a marginplot graph after running a logit regression. After editing the graph in stat…
Hiding the empty categories in catplotHi, I am making barplots using the catplot (ssc) package, to show the % diabetes by countries for d…
RegressionHi guys, I am not too experienced with statistics, but am conducting some quantitative analysis for…
Subscribe to:
Post Comments (Atom)
0 Response to Create factor dummy variables from a long variable
Post a Comment