two.sample.test: Two Sample Test

Description Usage Arguments Value See Also Examples

View source: R/two.sample.test.R

Description

Performs a two independent sample test.

Usage

1

Arguments

formula

A formula, the left hand side of which indicated the outcomes, and the right hand side of which contains the factor

data

A data.frame

test

A function whose first two arguments are the two-samples to be tested, and whose result is an object of class htest.

...

further arguments for test

Value

A multi.test object, representing a table of the results of test applied to each of the variables.

See Also

t.test ks.test wilcox.test

Examples

1
2
3
4
dat<-data.frame(a=rnorm(100),b=rnorm(100),c=rnorm(100),d=rnorm(100)>(-.5))
two.sample.test(d(a,b) ~ d,dat,ks.test)
two.sample.test(a ~ dich(b,cut=0) ,dat,t.test)
two.sample.test(d(a^2,abs(b),c)~d,dat,wilcox.test)

Deducer documentation built on May 2, 2019, 8:35 a.m.