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
Dropping stocks below 5th percentileDear Statalists, I would like to drop the stocks whose market value (MV) is below 5th percentile of…
Amemiya-Lee-NeweyI having problems using Amemiya-Lee-Newey test after ivprobit with in regression with 2 instruments.…
how to generate sequence integer starting from 0 (by group)Hi, I have a panel data set and try to generate sequence numbers by group but the numbers starting f…
How can i convert a *.dsv file into a *.dta file?Hi I would like to work with a dataset of the recent president's election in Argentina. But I could…
WHEN to delete missing/negative values?Hello, I was wondering when it is best to clean the data (i.e. delete missing or negative values) w…
Subscribe to:
Post Comments (Atom)
0 Response to Create new dummy variable
Post a Comment