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
control variables difference-in-differenceHi there, I was wondering about adding control variables to a DiD model. I'm following instructions…
svmat variable not found?I am trying to run the following code: Code: //create the dataset for the forestplot. matrix ipd =…
Combining several smoothed plots into one paneI have longitudinal data and want to examine inter-individual differences in the within functional f…
from df and p-value to calculate the lower bound t scoreIs there a way to calculate the two-tail t-score from df and p-value without looking up in the t-tab…
Need help with invalid synatxI'm trying to run a for loop which inputs extracts values from the rtable for a variable after runni…
Subscribe to:
Post Comments (Atom)
0 Response to Create factor dummy variables from a long variable
Post a Comment