myttest: This is my constructor function

Description Usage Arguments Details Value See Also Examples

View source: R/myttest.R View source: R/myconstr.R

Description

This function will create a list output

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

Usage

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

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 makes an object filled with valuable material Need to be more specific here.

The constructor function makes a list that can be worked and further processed with an appropriate method(s) Returns either to accept or reject the null hypothesis with alpha = 0.05

Value

list of data and lm objects

list containing the data, acceptance/rejection of Null hypothesis, and t test object

See Also

t.test for more information about t tests

Examples

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

ctstrick61/s3oopcs documentation built on Dec. 19, 2021, 7:03 p.m.