myttest: A constructor function for t tests

Description Usage Arguments Details Value See Also Examples

View source: R/myttest.R

Description

This is an example of what can be done with S3 OOP

Usage

1
myttest(x, y, paired = FALSE, alpha = 0.05)

Arguments

x

vector of data

y

vector of data

paired

TRUE or FALSE, FALSE by default

alpha

alpha level between 0,1

Details

The constructor function makes a list that can be worked and further processed with an appropriate method(s)

Value

list containing the data, and t test object

See Also

t.test for more information about t tests

Examples

1
myttest(x=rnorm(30,10,12), y=rnorm(40, 7, 10))

wkoury/math4753-koury-R-package documentation built on Jan. 1, 2021, 12:49 p.m.