myttest: A constructor function for t tests

View source: R/myttest.R

myttestR Documentation

A constructor function for t tests

Description

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

Usage

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

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

MATHSTATSOU/Intro2R documentation built on Feb. 20, 2025, 6:18 a.m.