Hi everyone,
I am trying to create a new dummy variable named DIS2 which defines a participant as having 1 or more definitions of disability. In my data set there are 5 dummy variables for each definition of disability, namely:
hearing: equal to 1 if the participant has difficulty in hearing, other equal to 0.
visual: which is equal to 1 if the participant has difficulty seeing, the other is equal to 0.
speaking: equal to 1 if the participant has difficulty in speaking, others equal to 0.
physical: equal to 1 if the participant has physical limitations, others equal to 0.
mental: which is equal to 1 if the participant has mental limitations, others equal to 0.
For example, if a participant has difficulty in speaking and listening, then in DIS2 it will be equal to 1. On the other hand, it will be equal to 0 when the participant only has 1 type of disability.
Any ideas? Thanks in advance!
Related Posts with Create new dummy variable
Pooled cross section the best way to analyze non-panel longitudinal data?There are a bunch of datasets, e.g. world values survey, alcohol usage report etc which present good…
Launch of Cross Sectional Dependence Tests in StataHi Dear, Can you please tell me when or in which year and month Stata introduced cross sectional de…
Non-typical periodicity in panel/time seriesWhen using tsset or xtset, there are a bunch of frequencies that are standard and can be set easily …
Strategy for analyzing 90 observations with a dichotomous dependent variableDear statalisters, I am involved in a project analyzing the effect of Environmental Impact Assessme…
Stacked bar chart using pre-aggregated census dataHello, I have a table of aggregated data that I downloaded from Census. The first three years of the…
Subscribe to:
Post Comments (Atom)
0 Response to Create new dummy variable
Post a Comment