Description Usage Arguments Examples
View source: R/funcao_teste_hip_T.R
Performs two sample t-tests for mean 1 and mean 2 (user supplied summary information). Is only applicable for the 2-sample tests (mu1-mu2). alternative = "greater" is the alternative that sample mean 1 has a larger mean than sample mean 2. If var.equal is "equal" then the pooled estimate of the variance is used. By default, if var.equal is "notequal" then the each sample variance is used separately and the Welch modification to the degrees of freedom is used. Note: The result of Welch modification to the degrees of freedom was truncated to integer.
1 2 3 | plot_T_test(alpha = 0.05, alternative = "two.sided",
var.equal = "equal", n1, m1, v1, n2, m2, v2, delta0 = 0,
annotations = TRUE, color = 3)
|
alpha |
significance level for the critical limits; it must lie between zero and one |
alternative |
a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". |
var.equal |
a char variable indicating whether to treat the two variances as being equal or notequal. If "equal" then the pooled variance is used to estimate the variance otherwise ("notequal") the Welch (or Satterthwaite) approximation to the degrees of freedom is used |
n1 |
a single number representing the sample size of sample 1 |
m1 |
a single number representing the sample mean of sample 1 |
v1 |
a single number representing the sample variance for sample 1 |
n2 |
a single number representing the sample size of sample 2 |
m2 |
a single number representing the sample mean of sample 2 |
v2 |
a single number representing the sample variance for sample 2 |
delta0 |
a number indicating the true value of the difference in means of the two sample test. |
annotations |
logical, show annotations in plot figure, TRUE ou FALSE (default = TRUE) |
color |
integer, color theme for plot, from 1 to 7 so far (default = 3) |
1 2 3 4 5 6 7 | plot_T_test(alpha = 0.05, alternative = "two.sided",
var.equal = "equal",
n1 = 10, m1 = 3.1, v1 = 1.5,
n2 = 20, m2 = 4.2, v2 = 1.7,
delta0 = 0,
annotations = TRUE,
color = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.