Learn R Programming

Demerelate (version 0.8-1)

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(empirical.list, offfull.list, 
              offhalf.list, offnon.list)

Arguments

empirical.list
Mean relatedness for empirical population over all loci. Population information from inputdata are ommited.
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

  • sumlmrSummary of mlogit model
  • halfThresholds for full and half siblings

Details

The function uses the package mlogit from Croissant 2011 to combine all the information from reference populations to 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.

See Also

offspring random.pairs

Examples

Run this code
## internal function not intended for direct use

Run the code above in your browser using DataLab