Yeah so what I am saying is that `cid` should uniquely identify a couple ; then `fid` could/should identify only the children of this couple. We don't need the `fid` of the couple to match the `fid` of the childs. #17
Yeah so what I am saying is that `cid` should uniquely identify a couple ; then `fid` could/should identify only the children of this couple. We don't need the `fid` of the couple to match the `fid` of the childs.
Thus, at any given point in time, a nuclear family is given by all the individuals with the same fid --those are all the children, + the two individuals with the same cid, which match the fid of the childrens, those are the parents.
if we have:
p1 the index of one future parent, he/she has cid=-1 initially ; let say his/her fid is equal to 4, the cid of its own parents
p2 the index of another future parent, he/she has cid=-1 initially ; let say his/her fid is equal to 6, the cid of its own parents
p1 and p2 get married and got a new cid, 8 then:
p1[,c("cid","fid")] is 8,4
p2[,c("cid","fid")] is 8,6
Later on in time they have two kids
k1[,c("cid","fid")] is -1,8
k2[,c("cid","fid")] is -1,8
Later on k1 get married to a who move in k1,k2,p1,p2 communitys ; and a need to learn from one of k1's parents.
we get those by doing:
in this case k1.parents should contain only p1 and p2 an noone else. What I say is that I think that we don't have to change p1 and p2fid's. If don't change them we could even gets k1.greatparents doing:
Thus, at any given point in time, a nuclear family is given by all the individuals with the same
fid
--those are all the children, + the two individuals with the samecid
, which match thefid
of the childrens, those are the parents.if we have:
p1
the index of one future parent, he/she hascid=-1
initially ; let say his/herfid
is equal to 4, thecid
of its own parentsp2
the index of another future parent, he/she hascid=-1
initially ; let say his/herfid
is equal to 6, thecid
of its own parentsp1 and p2 get married and got a new
cid
,8
then:p1[,c("cid","fid")]
is8,4
p2[,c("cid","fid")]
is8,6
Later on in time they have two kids
k1[,c("cid","fid")]
is-1,8
k2[,c("cid","fid")]
is-1,8
Later on
k1
get married toa
who move in k1,k2,p1,p2 communitys ; anda
need to learn from one ofk1
's parents. we get those by doing:in this case k1.parents should contain only p1 and p2 an noone else. What I say is that I think that we don't have to change
p1
andp2
fid
's. If don't change them we could even gets k1.greatparents doing:Everything stays the same but we don't do:
Originally posted by @simoncarrignon in https://github.com/simoncarrignon/mixed-transmission/issues/14#issuecomment-1823144878