Giter Site home page Giter Site logo

testdescriber's Introduction

testdescriber

Translate statistical test results into 'plain' English.

Installation

devtools::install.github("dc27/testdescriber")
library(testdescriber)

Preface

It's difficult, sometimes, to put the results of a statistical test into words that all audiences can describe. Many times, I've gotten to the end of my experiment and forgotten exactly what the p-value I've calculated actually describes. This package hopes to alleviate the demands from having to describe a hypothesis test after forgetting statistical jargon.

Functions

describe_h_test_results()

The main function (so far) of the package. It takes in your p-value, your alpha value (significance level), and a list containing your null hypothesis and alternative hypothesis:

h <- list()
h$null <- "your null hypothesis"
h$alternative <- "your alternative hypothesis"

Optional arguments include

  • number of significant figures to round p value in the output string.
  • observed statistic (e.g. stat = "mean")
describe_h_test_results(
  p = 0.0345,
  alpha = 0.05,
  h = list(
    null = "Cats and dogs are the same",
    alternative = "Cats and dogs are not the same"
    ),
  stat = "mean"
  )

Output

[1] "Given a level of significance 0.05, a p-value of 0.034 allows the rejection
of the null hypothesis: Cats and dogs are the same and accept the alternative
hypothesis: Cats and dogs are not the same. It is unlikely that the difference
between the observed mean and the null hypothesis is due to chance, and instead
represents a statistically significant difference."

testdescriber's People

Contributors

dc27 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.