Summary method for the single_prop function

# S3 method for single_prop
summary(object, dec = 3, ...)

Arguments

object

Return value from single_prop

dec

Number of decimals to show

...

further arguments passed to or from other methods

Details

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

See also

single_prop to generate the results

plot.single_prop to plot the results

Examples

result <- single_prop(titanic, "survived", lev = "Yes", comp_value = 0.5, alternative = "less") summary(result)
#> Single proportion test (binomial exact) #> Data : titanic #> Variable : survived #> Level : Yes in survived #> Confidence: 0.95 #> Null hyp. : the proportion of Yes in survived = 0.5 #> Alt. hyp. : the proportion of Yes in survived < 0.5 #> #> p ns n n_missing sd se me #> 0.407 425 1,043 0 0.491 0.015 0.030 #> #> diff ns p.value 0% 95% #> -0.093 425 < .001 0.000 0.433 *** #> #> Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1