Is there a command to split a categorical variable into binary variables? For example, splitting a "race" variable with values "white, black, hispanic" to three variables: race1, race2, race3 where race1 = 1 if race = "white" etc.
Just wondering if someone created a command like this since it would save a lot of time!
Related Posts with Is there a command for quickly splitting a categorical variable into multiple binary variables?
Ordered logistic regression with panel data and an interaction term between two binary independent variablesHi Users, I have a panel data set covering the years 2011-18 but mainly focusing on 2015-16. I am a…
Ordered Probit: discontinuous region with missing values encountered when estimating Marginal effectDear Statalist I am using ordered probit model. While calculating the marginal effect it showing th…
Ivreg2Array Hi, I am writing a thesis on the effect of higher stringency on Covid-19 mortality in US coun…
Creating a gamma distribution function to estimate likelihoodsI have created a dataset from the following: set obs 10 gen goals=_n-1 gen alpha=1.4 gen beta=1 I …
stset+sttocc matching - nested case-control studyHi all, I am designing a nested case-control study using cohort data and would like some help with …
Subscribe to:
Post Comments (Atom)
0 Response to Is there a command for quickly splitting a categorical variable into multiple binary variables?
Post a Comment