tidyProbs: Add significance stars to probabilities

Description Usage Arguments Details Examples

View source: R/functions.R

Description

Add significance stars to probabilities

Usage

1
2
tidyProbs(p, digits = 4, cutpoints = c(0, 0.0075, 0.0145, 0.025, 0.037,
  1), symbols = c("***", "**", "*", "<c2><b0>", " "))

Arguments

p

a vector of probabilities

cutpoints

in order from most to least significant, a vector of probabilities to demarcate significance levels. Defaults to 0, .002 , .0075, .037, .07, 1. The middle four numbers correspond to the chosen significance levels.

a

vector of symbols to use corresponding to the cutpoints

Details

The default significance levels, .0075 , .0145, .025, .037 correspond to the p-values obtained when the maximum BF10 (calculated via the VSMPR) is 10, 6, 4, and 3, respectively. These also correspond to minimum posterior probabilities for the null hypothesis of 0.091, 0.143, 0.20, and 0.25. If applying these probabilities to local false discovery rates or posterior null probabilities then one may wish to change the cutpoints to c(0, 0.091, 0.143, 0.20, 0.25, 1).

Examples

1

abnormally-distributed/abdisttools documentation built on May 5, 2019, 7:07 a.m.