Summary method for the compare_props function

# S3 method for compare_props
summary(object, show = FALSE, dec = 3, ...)

Arguments

object

Return value from compare_props

show

Show additional output (i.e., chisq.value, df, and confidence interval)

dec

Number of decimals to show

...

further arguments passed to or from other methods

Details

See https://radiant-rstats.github.io/docs/basics/compare_props.html for an example in Radiant

See also

compare_props to calculate results

plot.compare_props to plot results

Examples

result <- compare_props(titanic, "pclass", "survived") summary(result)
#> Pairwise proportion comparisons #> Data : titanic #> Variables : pclass, survived #> Level : in survived #> Confidence: 0.95 #> Adjustment: None #> #> pclass Yes No p n n_missing sd se me #> 1st 179 103 0.635 282 0 0.481 0.029 0.056 #> 2nd 115 146 0.441 261 0 0.496 0.031 0.060 #> 3rd 131 369 0.262 500 0 0.440 0.020 0.039 #> #> Null hyp. Alt. hyp. diff p.value #> 1st = 2nd 1st not equal to 2nd 0.194 < .001 *** #> 1st = 3rd 1st not equal to 3rd 0.373 < .001 *** #> 2nd = 3rd 2nd not equal to 3rd 0.179 < .001 *** #> #> Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1