Code Monkey home page Code Monkey logo

pvalvis's Introduction

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.

pvalvis's People

Contributors

emanuelsommer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.