adapref has two main uses:
-
Estimation of the effective population size of a single population when there is preferential sampling [1]
-
Estimation of the effective population sizes of two populations coevolving [2]. One is free to include or not preferential sampling in this second scenario
It is a package to be used jointly with phylodyn and spmrf. Many of the functions of this package have been developed starting from the work done in these two packages. We acknowledge the developers for their work.
-
Install (if necessary) package dependencies and helpers:
devtools
,ape
,spmrf
,rstan
,loo
andphylodyn
. -
Load
devtools
usinglibrary(devtools)
. -
Install
adapref
using-
install_github("lorenzocapp/adapref")
, or -
install_github("lorenzocapp/adapref", build_vignettes = TRUE)
if you want some illustrative vignettes (note: usingbuild_vignettes = TRUE
will make the install take longer).
-
-
Adaptive preferential sampling with simulated data: A short tutorial to describe the basics of the method described in [1]
-
Adapop: multiple populations coalescent modelling: A short tutorial to describe the basics of the method described in [2]
[1] Cappello, L., Palacios, J.A. (2022) Adaptive Preferential Sampling in Phylodynamics, Journal of Computational and Graphical Statistics, 31, 541-552. Link
[2] Cappello, L.***, Kim, J.* , Palacios, J. A., (2022+) ``Bayesian Inference of Dependent Population Dynamics in Coalescent Models.” biorXiv . * first authors