AIC.comp: Compute and compare AIC for different fasimcoal models

View source: R/fastsimcoal.R

AIC.compR Documentation

Compute and compare AIC for different fasimcoal models

Description

This functions expects that different fastsimcoal models were run in different directories within the same parent directory (as for fsc.multiple.estimate). Assuming that dir.in is the parent directory, it will extract and compute AIC from all of them.

Usage

AIC.comp(dir.in)

Arguments

dir.in

The parent directory within which the models have been run

Details

It is important to note that this function will probably fail if there are more than one .est within each directory as it will read these to evaluate the number of parameters in the model. If there is more than one file, there is no way to know which one is correct. Also, that will also create an inconsistency between the number of models and the number of files, which may cause problems in reporting the results even if the function completes.

References

Excoffier L., Dupanloup I., Huerta-Sánchez E., Sousa V. C. and Foll M. (2013) Robust demographic inference from genomic and SNP data. PLoS genetics 9(10)


carlopacioni/amplicR documentation built on Aug. 19, 2023, 7:59 p.m.