glm.prep: Preparation for multinomial logistic regression.
Description
Function combines randomized full and half siblings with empirical values and non related random individuals to one multinomial logistic regression to calculate relatedness thresholds.
Usage
glm.prep(offfull.list, offhalf.list, offnon.list)
Arguments
offfull.list
Mean relatedness of populations randomized as full siblings over all loci from the reference population.
offhalf.list
Mean relatedness of populations randomized as half siblings over all loci from the reference population.
offnon.list
Mean relatedness of populations of randomized non relatives over all loci from the reference population.
Value
Details
The function uses the package mlogit from Croissant 2011 to combine all the information from reference populations in one multilogistic regression model using mlogit(...). Thresholds are calculated and used for downstream calculations.
References
Croissant, Y. 2011 mlogit: multinomial logit model R package version 0.2-2.