Tidy/glance a(n) htest object
## S3 method for class 'htest' tidy(x, ...) ## S3 method for class 'htest' glance(x, ...)
x |
An |
... |
Additional arguments. Not used. Needed to match generic
signature only. Cautionary note: Misspelled arguments will be
absorbed in |
A tibble::tibble()
with columns:
alternative |
Alternative hypothesis (character). |
conf.high |
Upper bound on the confidence interval for the estimate. |
conf.low |
Lower bound on the confidence interval for the estimate. |
estimate |
The estimated value of the regression term. |
estimate1 |
Sometimes two estimates are computed, such as in a two-sample t-test. |
estimate2 |
Sometimes two estimates are computed, such as in a two-sample t-test. |
method |
Method used. |
p.value |
The two-sided p-value associated with the observed statistic. |
parameter |
The parameter being modeled. |
statistic |
The value of a T-statistic to use in a hypothesis that the regression term is non-zero. |
Other htest tidiers:
augment.htest()
,
tidy.pairwise.htest()
,
tidy.power.htest()
tt <- t.test(rnorm(10)) tidy(tt) glance(tt) # same output for all htests tt <- t.test(mpg ~ am, data = mtcars) tidy(tt) wt <- wilcox.test(mpg ~ am, data = mtcars, conf.int = TRUE, exact = FALSE) tidy(wt) ct <- cor.test(mtcars$wt, mtcars$mpg) tidy(ct) chit <- chisq.test(xtabs(Freq ~ Sex + Class, data = as.data.frame(Titanic))) tidy(chit) augment(chit)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.