View source: R/mean.t.test.onesample.simple.R
mean.t.test.onesample | R Documentation |
Calculate one sample t test for mean.
## S3 method for class 't.test.onesample'
mean(
x,
null.hypothesis.mean = 0,
alternative = c("two.sided", "less", "greater"),
conf.level = 0.95,
finite.population.N = NA,
na.rm = T
)
## S3 method for class 't.test.onesample.simple'
mean(
sample.mean,
sample.variance,
sample.size,
null.hypothesis.mean = 0,
alternative = c("two.sided", "less", "greater"),
conf.level = 0.95,
finite.population.N = NA
)
x |
Vector - sample values to be used for mean calculation. |
null.hypothesis.mean |
Scalar - null hypothesis mean value, sample.mean is tested against this value. |
alternative |
The alternative hypothesis to use for the test computation. |
conf.level |
The confidence level for this test, between 0 and 1. |
finite.population.N |
Scalar - the population size if finite population adjustment needs to be made. |
na.rm |
Logical - remove NA values prior to running calculation. |
sample.mean |
Scalar - sample mean to be tested. |
sample.variance |
Scalar - sample variance. |
sample.size |
Scalar - sample size. |
The results of the statistical test.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.