bbpost_double: Posterior inference under the beta-binomial model with...

Description Usage Arguments Author(s)

View source: R/RcppExports.R

Description

Posterior inference under the beta-binomial model with outliers. If od_param = 0, then this reduces to the binomial model with outliers.

Usage

1
2
bbpost_double(x, n, ploidy, prob_geno, seq_error, bias_val, od_param,
  outlier = FALSE, out_prop = 0.1, out_mean = 0.5, out_disp = 1/3)

Arguments

x

The observed number of reference alleles.

n

The total number of reads.

ploidy

The ploidy of the species

prob_geno

The distribution of genotypes.

seq_error

The sequencing error rate.

bias_val

The bias parameter. A value of 1 indicates no bias.

od_param

The over-dispersion parameter. Should be in [0, 1). A value of 0 reduces to the binomial model.

outlier

A logical. Should we include the outlier model (TRUE) or not (FALSE)?

out_prop

The proportion of observations that are outliers.

out_mean

The mean of outlier distribution.

out_disp

The overdispersion parameter of the outlier distribution.

Author(s)

David Gerard


dcgerard/updogAlpha documentation built on May 14, 2019, 3:10 a.m.