README.md

htester

Getting Started

# Install Github version:
devtools::install_github("gitronald/htester")

# Load the package and sample data
library(htester)
data(htests)

htests

> x = rnorm(100, 100, 40)
> y = rnorm(100, 100, 40)
> cor.test(x, y, method = "spearman")
    Spearman's rank correlation rho

data:  x and y
S = 136820, p-value = 0.0748
alternative hypothesis: true rho is not equal to 0
sample estimates:
      rho 
0.1790099 
> cor_test(x, y, method = "spearman")
  statistic.S p.value estimate.rho null.value.rho alternative                          method     data.name
1      136818  0.0748        0.179              0   two.sided Spearman's rank correlation rho var1 and var2

htests available



gitronald/htester documentation built on May 17, 2019, 5:30 a.m.