qtlToQuantile: Obtain the QTL based on the quantile of a sampled posterior

Description Usage Arguments Value Examples

Description

Obtain the quantile based on a sampled posterior

Usage

1
qtlFromQuantile(data, probs, type = 4)

Arguments

data

a tibble containing the MCMC samples from which the quantile should be estimated

probs

a vector containing the required quantiles

type

the quantile type to be returned. See the help for quantile() for more information. Default 4, to ensure quality with sampled values.

Value

a vector containing the quantiles obtained from the Value column in data

Examples

1
2
3
b <- createBerryData()
m <- fitBinomialModel(b$Subjects, b$Events) %>% dplyr::filter(Index==10)
qtlFromQuantile(m, c(0.1, 0.2, 0.8, 0.9))

PuzzledFace/qtlr documentation built on March 19, 2020, 1:17 a.m.