myttest | R Documentation |
This is an example of what can be done with S3 OOP
myttest(x, y, paired = FALSE, alpha = 0.05)
x |
vector of data |
y |
vector of data |
paired |
TRUE or FALSE, FALSE by default |
alpha |
alpha level between 0,1 |
The constructor function makes a list that can be worked and further processed with an appropriate method(s)
list containing the data, and t test object
t.test
for more information about t tests
myttest(x=rnorm(30,10,12), y=rnorm(40, 7, 10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.