hTest: hTest

Description Usage Arguments Details Examples

View source: R/hTest.R

Description

hTest provides some basic hypothesis statistical tests, and can detect which test method should be used based on the variable modes and distribution of continuous variables.

Usage

1
2
3
hTest(data, xvars, yvars = "", alter = c("two.sided", "less",
  "greater")[1], paired = FALSE, confLevel = 0.95, nullHyp = 0,
  normalSampleSize = 30, Digits = 4)

Arguments

data

data.frame

xvars

variables on the right hand side.

yvars

variables on the left hand side. when yvars is null, statistical tests are made on xvars.

alter

could be two.sided,less,greater.

paired

logical, if the x variable and yvariable is paired.

confLevel

confidence level,alpha=1-confLevel

nullHyp

eg. mu=0 in t.test

normalSampleSize

integer, when sample size exceed this value, always using parametric tests instead.

Details

when there are multiple variables both in xvars and yvars params, hTest performs statistical tests on each x and y.

Examples

1
2
3
4
hTest(iris,xvars=c('Sepal.Length','Sepal.Width'),yvars='Species',alter='two.sided')->res
res$hTestRes

plot(res$hTestGraph)

sontron/madis documentation built on March 23, 2021, 10:17 p.m.