Skip to content

[R package] A quick and easy way of visualizing p-values for basic hypothesis tests

License

Notifications You must be signed in to change notification settings

EmanuelSommer/PvalVis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

[R package] A quick and easy way of visualizing p-values for basic hypothesis tests

Topics

Resources

License

Stars

Watchers

Forks

Languages