Description Usage Arguments Details Value Author(s) Examples
Produces table of relevant descriptive statistics and inference for either one- or two-sample t-test. In the two-sample case, the user can specify whether or not equal variances should be presumed. Can also perform a test of equality of proportions, with the appropriate Wald or exact binomial based confidence intervals.
1 2 3 4 |
obs |
number of observations for the first sample. |
mean |
the sample mean of the first sample. |
sd |
the sample standard deviation of the first sample. |
obs2 |
number of observations for the second sample (this is optional). |
mean2 |
if |
sd2 |
if |
null.hyp |
a number specifying the null hypothesis for the mean (or difference in means if performing a two-sample test). Defaults to zero. |
alternative |
a string: one of |
level |
confidence level of the test. Defaults to 95/100. |
var.eq |
a logical value, either |
prop |
if |
exact |
must be |
Values must be placed in the specified spaces, in place of the defaults. If obs2
, mean2
, or sd2
is specified, then all three must be specified and a two-sample t-test is run.
Prints a summary of the data and the corresponding t-test.
Variable |
|
Obs |
Number of observations of each variable: includes missing values. |
Mean |
the sample mean; also, the estimated difference in means in a two-sample test. |
Std.Err. |
the estimated standard error of the mean and of the difference in the two-sample test. |
Std.Dev. |
standard deviation estimates. |
CI |
a confidence interval for the means, and for the difference in the two-sample test. This is at the confidence level specified in the argument. If |
Null hypothesis |
a statement of the null hypothesis. |
Alternative hypothesis |
a statement of the alternative hypothesis. |
t |
value of the t-statistic. |
df |
the degrees of freedom for the test. |
Pr |
a p-value for inference on the corresponding hypothesis test. |
Scott S. Emerson, M.D., Ph.D., Andrew J. Spieker, Brian D. Williamson, Travis Y. Hee Wai, Solomon Lim
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.