Create a summary table of a two-sample mean interval
Arguments
- data
A data frame (or tibble).
- formula
The variables to run the test on, in formula syntax,
var1 ~ var2
.- digits
The number of digits to round table values to. Defaults to 3.
- conf_lvl
The confidence level of the interval, entered as a value between 0 and 1. Defaults to 0.95.
An override to the table caption. A sensible default is provided.
Value
An object of class flextable. In an interactive environment, results are viewable immediately.
Examples
infer_2mean_int(mtcars, wt~vs)
Two Sample Independent Means Interval Between wt and vs
Confidence Level: 95% vs
n
n
Missing
Group
Means
Standard
Error
df
95%
Interval
Lower
95%
Interval
Upper
0
18
0
3.689
0.286
29.981
0.493
1.662
1
14
0
2.611
infer_2mean_int(mtcars, wt~vs, conf_lvl = .9)
Two Sample Independent Means Interval Between wt and vs
Confidence Level: 90% vs
n
n
Missing
Group
Means
Standard
Error
df
90%
Interval
Lower
90%
Interval
Upper
0
18
0
3.689
0.286
29.981
0.591
1.563
1
14
0
2.611