estimate_significance_core {transite} | R Documentation

## Significance of Observed Mean

### 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

    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

    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")

[Package transite version 1.10.0 Index]