👋 Hello to everyone
,
I am trying to do a research using Ess dataset, I need to create a variable that can represent fertility. Is there any possibility to create a variable that takes into account the number of children per household from the household composition?
rshipa2 rshipa3 rshipa4 rshipa5 rshipa6 rshipa7 rshipa8
Pare Pare Brot Brot Brot Not Not
Pare Pare Brot Not Not Not Not
Husb Not Not Not Not Not Not
Not Not Not Not Not Not Not
Not Not Not Not Not Not Not
Husb Son/ Son/ Son/ Not Not Not
Not Not Not Not Not Not Not
Husb Son/ Not Not Not Not Not
Pare Not Not Not Not Not Not
Husb Not Not Not Not Not Not
Not Not Not Not Not Not Not
Husb Not Not Not Not Not Not
Pare Pare Brot Brot Not Not Not
Not Not Not Not Not Not Not
Pare Pare Brot Brot Not Not Not
Pare Pare Brot Brot Don' Not Not
Husb Not Not Not Not Not Not
Husb Son/ Son/ Not Not Not Not
Pare Pare Husb Not Not Not Not
Pare Pare Brot Othe Not Not Not
Husb Son/ Not Not Not Not Not
Can anyone help me with the commands?

I am trying to do a research using Ess dataset, I need to create a variable that can represent fertility. Is there any possibility to create a variable that takes into account the number of children per household from the household composition?
rshipa2 rshipa3 rshipa4 rshipa5 rshipa6 rshipa7 rshipa8
Pare Pare Brot Brot Brot Not Not
Pare Pare Brot Not Not Not Not
Husb Not Not Not Not Not Not
Not Not Not Not Not Not Not
Not Not Not Not Not Not Not
Husb Son/ Son/ Son/ Not Not Not
Not Not Not Not Not Not Not
Husb Son/ Not Not Not Not Not
Pare Not Not Not Not Not Not
Husb Not Not Not Not Not Not
Not Not Not Not Not Not Not
Husb Not Not Not Not Not Not
Pare Pare Brot Brot Not Not Not
Not Not Not Not Not Not Not
Pare Pare Brot Brot Not Not Not
Pare Pare Brot Brot Don' Not Not
Husb Not Not Not Not Not Not
Husb Son/ Son/ Not Not Not Not
Pare Pare Husb Not Not Not Not
Pare Pare Brot Othe Not Not Not
Husb Son/ Not Not Not Not Not
Can anyone help me with the commands?
Comment