myttest: This is constructor function

Description Usage Arguments Value Examples

View source: R/myttest.R

Description

This function can be used to do determine whether the population means of two samples are equal or not by performing Hypothesis Testing using a T-Test.

Primarily T-Test is used when we do not know the variance of the population.

myttest can perform a T-Test for Paired samples, unpaired samples with equal and unequal variances.

Usage

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

Arguments

x

vector of the data

y

vector of the data

paired

Logical vector

alpha

Significance level

Value

Return's list with class 'Rttest' containing the following components:

Test_Type a character string indicating what type of t-test was performed.
Test_Conclusion a character string indicating to reject the NULL of equality of means at the alpha level of significance.
Test_Summary a list of summary returned by t.test.
Data a list of input vectors.

Examples

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

m-harikiran/T-Test documentation built on Dec. 21, 2021, 12:47 p.m.