Hello everyone,
Im having trouble findind the right command to do this, hope you can help me. I need to generate a variable that tells me how many characteristics have every person surveyed. All the characteristics are satisfied when all these variables are = 1:
poco_int==1 | index_depr==1 | no_dormir==1 | cansancio==1 |no_apetito==1 | atencion==1 | moverse==1
Also the ID of each person is the variable HHID
Im going to describe an example for you to understand me better: Is like the person #8 fulfill poco_int=1 and cansancio=1 so they have 2 characteristics satisfied and the variable generated is going to be 2 for this person
hope my english is okay! thank you so much
Related Posts with Generate variable counting with conditions
average at sector level within state (excluding current sector)Hi all, I have a company level data as below and I want to create a new variable that is the averag…
-xtsfkk- and fixed effectDear Dr Karakaplan, thank you very much for providing the community with this new methodology. I'm…
Error code in Google Places API--Observation numbers out of rangeI've been trying to run googleplaces to return latitude/longitude for some facilities I am analyzing…
Conditional logit (clogit) for cross-sectional dataDear all, I'm working on a project in which we analyze firms' location decision, i.e. the decision …
Why should I use difference GMM instead of system GMM (Arellano-Bond)What are the reasons to use Arellano-Bond's difference GMM instead of system GMM? Reasons to apply …
Subscribe to:
Post Comments (Atom)
0 Response to Generate variable counting with conditions
Post a Comment