Create new offspring in pedigree.
create_offspring(dad_info, mom_info, byear, last_id, GRR)
Data.frame with 1 row. All pedigree information of offspring's father, must contain all fields generated by create_pedFile
.
Data.frame with 1 row. All pedigree information of offspring's mother, must contain all fields generated by create_pedFile
.
The birth year of offspring.
Numeric. The last id used in the pedigree.
Numeric. The genetic relative-risk of disease, i.e. the relative-risk of disease for individuals who carry at least one copy of the causal variant. Note: When simulating diseases with multiple subtypes GRR
must contain one entry for each simulated subtype. See details.
new_child_info the pedigree information for the new child
last_id the updated value of last_id after adding new offspring