. reshape wide dag lhw dgn dwt dru deh drgn1 drgn2 yem yse boa_d boa les_r les, i(idhh) j(relationship) string
(j = .. Conyuge Hijo1 Hijo10 Hijo2 Hijo3 Hijo4 Hijo5 Hijo6 Hijo7 Hijo8 Hijo9 Jefe(a) Nieto1 Nieto10 Nieto11 Nieto12 Nieto13 Nieto14 Nieto15 Nieto2 Nieto3 Nieto4 Nieto5 Nieto6 Nieto7 Nieto8 Nieto9 Nuera/Yerno Padres)
values of variable relationship not unique within idhh
Your data are currently long. You are performing a reshape wide. You specified i(idhh) and
j(relationship). There are observations within i(idhh) with the same value of j(relationship). In the
long data, variables i() and j() together must uniquely identify the observations.
(j = .. Conyuge Hijo1 Hijo10 Hijo2 Hijo3 Hijo4 Hijo5 Hijo6 Hijo7 Hijo8 Hijo9 Jefe(a) Nieto1 Nieto10 Nieto11 Nieto12 Nieto13 Nieto14 Nieto15 Nieto2 Nieto3 Nieto4 Nieto5 Nieto6 Nieto7 Nieto8 Nieto9 Nuera/Yerno Padres)
values of variable relationship not unique within idhh
Your data are currently long. You are performing a reshape wide. You specified i(idhh) and
j(relationship). There are observations within i(idhh) with the same value of j(relationship). In the
long data, variables i() and j() together must uniquely identify the observations.
long | wide | |||||||||
i | j | a | b | i | a1 | a2 | b1 | b2 | ||
< | -- ---> | -- | ---- | --reshape | --- | -- | ||||
1 | 1 | 1 | 2 | 1 | 1 | 3 | 2 | 4 | ||
1 | 2 | 3 | 4 | 2 | 5 | 7 | 6 | 8 | ||
2 | 1 | 5 | 6 | +-- | ---- | -- | --- | -- | ||
2 | 2 | 7 | 8 |
Comment