GithubHelp home page GithubHelp logo

hyptest's Introduction

hyptest

Hyptest is a R-package that intends to facilitate the use of common randomization-based statistical inference approaches and hypothesis testing.


Why should I use this package?

If you ever wondered: What is Chi-Square test? What is the difference between t-test and z-test? What is null hypothesis? ... and other juicy statistical questions, this package is for you. The idea behind this package is to help people to explore the power (and beauty) of using statistics.


How do I access this package?

STEP 1. Install and use the devtools package

install.packages("devtools")
library(devtools)

STEP 2. Install hyptest

install_github("harvard-stat108s23/project2-group20/hyptest")

STEP 3. Load the hyptest package

library(hyptest)

How do I use this package?

A. Please start in the vignette! It has a function that will help you to shortlist what is the best common statistical inference approach and hypotesis testing for your data.

B. Right now you can explore some test statistics using the functions below:

  • est_chi: chi-square
  • est_corr: correlation coefficient
  • est_diff_means: difference in means
  • est_diff_props: difference in proportions
  • est_mean: one-sample mean
  • est_prop: one-sample proportion

C. And you can use hypothesis testing:

  • hyp_mean

D. More functions are coming soon!


Example

est_mean

In this example, the code provides the sample mean of the palmerpenguins' bill lenght (statistic) from a bootstrap distribution of 1000 samples.

Required packages

library(hyptest)
library(palmerpenguins)

Function to compute the inference for a population mean, where its graph will be exported as pdf

est_mean(penguins, bill_length_mm, cil= 0.99, save_as = "pdf")

Output

"[1] The sample mean is 43.99"
"[1] The true population mean is between 43.22 and 44.77 at 99% confidence interval"


     

hyptest's People

Contributors

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