View source: R/statistics.R View source: R/zzz-r4vn-inference.R
| ztesti | R Documentation |
Performs one- or two-sample z tests when population standard deviations are known.
ztesti(
n1,
mean1,
sd1,
n2 = NULL,
mean2 = NULL,
sd2 = NULL,
mu = 0,
alternative = c("two.sided", "less", "greater"),
level = 0.95,
digits = 3,
p_digits = 3,
show = TRUE,
console = FALSE
)
ztest(
x,
sigma1,
y = NULL,
sigma2 = NULL,
by = NULL,
data = NULL,
mu = 0,
alternative = c("two.sided", "less", "greater"),
level = 0.95,
digits = 3,
p_digits = 3,
show = TRUE,
console = FALSE
)
n1, mean1, sd1 |
Summary statistics for sample 1. |
n2, mean2, sd2 |
Optional summary statistics for sample 2. |
mu |
Null mean or mean difference. |
alternative |
Alternative hypothesis. |
level |
Confidence level. |
digits, p_digits |
Decimal places for estimates and p-values. |
show |
Logical; open the formatted result in the Viewer. Default |
console |
Logical; also print the traditional text result in the Console. Default |
x, y |
Numeric variables. |
sigma1, sigma2 |
Known population standard deviations. |
by |
Optional two-level grouping variable. |
data |
Data frame. If |
Invisibly returns an object of class r4vn_stat.
ztesti(100, 52, 10, mu = 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.