Hi everyone!
I have results of interviews (one person interviewed in each household). There is information on different family members but for the rest, everyting is exaclty the same. For example:
respondent_name name_of_mem relationship_to_hhhead sex_mem
ABE-ABE, LORITA ABE-ABE, LORITA other relative Female
ABE-ABE, LORITA DE GRACIA, FRECHIE THERESE Son/Daughter Female
ABE-ABE, LORITA DE GRACIA, TERESITA Head Female
So respondent_name is the same but the name of member varies. I am trying to reshape into wide form to have information of family members as attributes of the respondent name.
I used the command:
reshape wide relationship_to_hhhead sex_mem age_hhmem, i( respondent_name) j( name_of_mem) string
Stata says then (note j = ... (listing all my members name) ) , not allowed
what does the " , not allowed" mean? What am I doing wrong?
Thank you for your answers!!
Chloé
Related Posts with Reshape : , not allowed
Oaxaca help - mean wage generated does not match the one given by sum commandGood afternoon, I am using the oaxaca command to decompose the ethnic pay gap, in the example here …
Drop variables with common suffix under certain conditionsDear all, I am facing difficulties in dropping some variables conditional on the missing observatio…
Long local macro with line breaksHi I have this long code: local varlist1 "AMAZONAS ANCASH APURIMAC AREQUIPA AYACUCHO CAJAMARCA CALLA…
Fractional Proportional Models and Controlling for Time.Hi Statalist, I have a dataset with a large number of observations and a small T. The years for my d…
Issues with attempts to drop observations (r109 type mismatch error)Hi there, I'm new to Stata and attempting to drop some observations from my sample, however I keep …
Subscribe to:
Post Comments (Atom)
0 Response to Reshape : , not allowed
Post a Comment