postfis {Geneclust} | R Documentation |
Posterior distribution of inbreeding coefficients
Description
Computes the posterior mean and some posterior quantiles for inbreeding coefficients.
Usage
postfis(path.mcmc, postmode.indiv, probs = c(0.025, 0.25, 0.5, 0.75, 0.975), plot = TRUE, print = FALSE, file=path.mcmc)
Arguments
path.mcmc |
Path to MCMC program output files |
postmode.indiv |
A vector which contains the population of origin of each individual |
probs |
Numeric vector of probabilities with values in [0,1]. By
default,probs=c(0.025,0.25,0.50,0.75,0.975) in order to compute credibility intervals. |
plot |
Logical: if TRUE histograms are plotted |
print |
Logical: if TRUE histograms are also printed |
file |
Character: Path to file where figures should be printed |
Value
postmean.fis |
A numerical vector which contains the posterior mean of inbreeding coefficient in each identified cluster |
quant.fis |
A matrix that stores the posterior distribution quantiles
of each inbreeding coefficient. Each line corresponds to one cluster |
Author(s)
Sophie Ancelet
Examples
# library(Geneclust)
## see the example described in the function mcmcgeneclust
[Package
Geneclust version 1.0.0
Index]