get_beta_ci_subg: Calculate conficence intervals for error bars of subgrouped...

View source: R/get_beta_ci.R

get_beta_ci_subgR Documentation

Calculate conficence intervals for error bars of subgrouped samples.

Description

Helper function to filter and return confidence intervals based on a joint beta distribution obtained from Q scores. For internal use.

Usage

get_beta_ci_subg(v, q)

Arguments

v

Numeric vector with PSI values of samples in a subgroup.

q

Character vector with the quality scores string of samples in a subgroup.

Details

Individual beta distributions are generated from each sample in the subgroup. Those distributions are sampled and the results are used to fit a new joint beta distribution. The joint beta is then sampled again to obtain confidence intervals for the subgroup.


kcha/psiplot documentation built on March 27, 2022, 4:20 a.m.