View source: R/myconstructor.R
myconstructor | R Documentation |
Constructor function that takes the input of 2 vectors and an integer value alpha and outputs the confidence interval and p-value for the t.test.
myconstructor(x, y, alpha)
x |
is a vector |
y |
is a vector |
alpha |
is a numeric value between 0 and 1 representing the error |
list containing the data, alpha, the confidence interval from input alpha value and the resulting p-value.
myconstructor(x=rnorm(30,5,2),y=rnorm(40,3,2),0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.