myttest | R Documentation |
This function takes in two vectors of data, true/false of whether the data is paired, and an alpha value for the acceptable error It provides the confidence interval and p-value from a t-test.
myttest(x, y, paired = FALSE, alpha = 0.05)
x |
#vector of data |
y |
#vector of data |
paired |
#a boolean that shows whether the supplied data is paired. This value defaults to false. |
alpha |
#the alpha, a value between 0-1 |
A named list with a dataframe of the data, confidence interval, and p-value
x <- rnorm(30,5,2); y <- rnorm(30,3,2) obj <- myttest(x=x, y=y, paired=FALSE, alpha=0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.