Learn R Programming

Demerelate (version 0.9-1)

relate.calc: Coordinates internally reference and empirical datasets and statistics

Description

Internal function of Demerelate to combine different populations of randomized offspring and empirical populations to calculate thresholds and statistics for later use as reference for each empirical population.

Usage

relate.calc(tab.pop, pairs, file.output, value, directory.name, ref.pop)

Arguments

tab.pop
Dataframe following format of inputformat used as reference for randomizations.
pairs
Number of pairwise comparison for each randomization.
file.output
logical. Should a cluster dendogram, histograms and .txt files be sent as standard output in your working directory. In some cases (inflating NA values) it may be necessary that this value has to be set as FALSE due to problems in calculating clusters on pairwise NA values.
value
String defining method to calculate allele sharing or similarity estimates. Can be set as "Bxy", "Sxy", "Mxy", "Li", "lxy", "rxy", "loiselle", "wang.fin", "wang", "ritland", "morans.fin" or "morans".
directory.name
Name of the directory results send to.
ref.pop
R object or external file to be read internally with standard Demerelate inputformat. Custom reference populations will be loaded for the analysis. Population information of reference file will be omitted so that allele frequencies are calculated from the whole dataset.

Value

Details

The function internally calls any procedure of randomization and offspring generation. Finally, it coordinates the preparation of multinomial logistic regression for threshold calculation.

References

Oliehoek, P. A. et al. (2006) Estimating relatedness between individuals in general populations with a focus on their use in conservation programs. Genetics, 173, 483-496.

See Also

Emp.calc offspring random.pairs glm.prep

Examples

Run this code
     ## internal function not intended for usage without Demerelate
     
     

Run the code above in your browser using DataLab