estimate_significance_core: Significance of Observed Mean

Description Usage Arguments Value See Also Examples

View source: R/k-mer-based.R

Description

estimate_significance_core returns an estimate of the significance of the observed mean, given a vector of means based on random permutations of the data.

Usage

1
2
3
4
5
6
estimate_significance_core(
  random_means,
  actual_mean,
  alternative = c("two_sided", "less", "greater"),
  conf_level = 0.95
)

Arguments

random_means

numeric vector of means based on random permutations of the data (empirical null distribution)

actual_mean

observed mean

alternative

side of the test, one of the following: "two_sided", "less", "greater"

conf_level

confidence level for the returned confidence interval

Value

A list with the following components:

p_value_estimate the estimated p-value of the observed mean
conf_int the confidence interval around that estimate

See Also

Other k-mer functions: calculate_kmer_enrichment(), check_kmers(), compute_kmer_enrichment(), count_homopolymer_corrected_kmers(), draw_volcano_plot(), estimate_significance(), generate_kmers(), generate_permuted_enrichments(), run_kmer_spma(), run_kmer_tsma()

Examples

1
2
3
4
test_sd <- 1.0
test_null_distribution <- rnorm(n = 10000, mean = 1.0, sd = test_sd)

estimate_significance_core(test_null_distribution, test_sd * 2, "greater")

transite documentation built on Nov. 8, 2020, 5:27 p.m.