Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.44 KB

README.md

File metadata and controls

42 lines (27 loc) · 1.44 KB

PvalVis

The goal of PvalVis is to give a quick and easy visualization tool for p-values in the setting of basic hypothesis tests. Especially for beginners the visualization of the p-values might improve the understanding not only of the p-value but also of the assumed distribution for the specific test.

The following underlying distributions are currently available:

  • Normal distributions (norm_pval)
  • student-t distributions (t_pval)
  • F distributions (F_pval)
  • χ2 distributions (chisq_pval)

For more information on each of the functions visit their individual help pages. For example:

library(PvalVis)
?norm_pval

Installation

You can install the released version of PvalVis from Github in R with the following line of code:

devtools::install_github("EmanuelSommer/PvalVis")

Example

These are basic examples which show you how the functions to display and highlight the p-values and the assumed density are used in practice:

library(PvalVis)
norm_pval(z_value=2.3,mean=0,sd=2,direction="both")
F_pval(F_value = 3, df1 = 5, df2 = 30)

As evident from the examples the first argument of each of the functions is the value of the test statistic. Then the parameters of the underlying distribution will be supplemented to the function and for the symmetric distributions one can then chose between a two sided and a one sided hypothesis tests with the direction argument.