| hypothesis_table | R Documentation |
Lists each hypothesis with its statistic, its p-value, its rank, whether it is significant individually, and a bound on the false discovery proportion (FDP) that can be reported next to its p-value.
hypothesis_table(fit, sort = FALSE)
fit |
a result of |
sort |
logical; if |
For the hypothesis of rank s, fdp_at_most is the smallest FDP
bound among the selections of the k most significant hypotheses with
k \ge s, that is, among the lists of most significant hypotheses that
contain it. It is built in the same way as the q-value of Storey (2003) from
the FDP bounds of ranked_bounds, and it is nondecreasing in the
rank. With probability at least 1 - alpha, for every level q at
once, the hypotheses with fdp_at_most <= q have a false discovery
proportion of at most q.
A data frame with the columns
hypothesis |
label, or index if the statistics had no names. |
z |
statistic. |
p_value |
one-sided p-value, not adjusted for multiplicity. |
rank |
rank from the largest statistic. |
significant |
|
fdp_at_most |
bound on the false discovery proportion, as in Details. |
Storey, J. D. (2003). The positive false discovery rate: a Bayesian interpretation and the q-value. The Annals of Statistics, 31, 2013–2035. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1214/aos/1074290335")}
select_by_fdp, ranked_bounds
se <- (log(dialysis$upper) - log(dialysis$lower)) / (2 * qnorm(0.975))
z <- (log(1.2 * 22.2) - log(dialysis$mortality)) / se
fit <- combined_bound(z)
head(hypothesis_table(fit, sort = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.