Invisibly returns an object of classes th_test and htest containing the test statistic, degrees of freedom when applicable, p-value, estimates, critical values, significance level, and decision. When plot = TRUE, the educational graph is produced as a side effect.
Arguments
dadosX
Numeric vector for the first sample. Use NULL when summary statistics are supplied.
dadosY
Numeric vector for the second sample. Use NULL when summary statistics are supplied.
alfa
Significance level.
Ha
Alternative hypothesis. Use 1 or "two.sided", 2 or "greater", and 3 or "less".
mX
Mean of the first sample.
s2X
Variance of the first sample.
nX
Size of the first sample.
mY
Mean of the second sample.
s2Y
Variance of the second sample.
nY
Size of the second sample.
plot
Logical. If TRUE (default), draw the educational graph; if FALSE, return the result without plotting.
Author
Willian Silva Barros
Details
Raw-data and summary-statistics modes are mutually exclusive. The function accepts raw data or summary statistics and uses Welch's standard error with Welch-Satterthwaite fractional degrees of freedom.