Learn R Programming

radiant (version 0.1.95)

summary.cross_tabs: Summary method for the cross_tabs function

Description

Summary method for the cross_tabs function

Usage

"summary"(object, ct_check = "", ...)

Arguments

object
Return value from cross_tabs
ct_check
Show table(s) for variables ct_var1 and ct_var2. "observed" for the observed frequencies table, "expected" for the expected frequencies table (i.e., frequencies that would be expected if the null hypothesis holds), "chi_sq" for the contribution to the overall chi-squared statistic for each cell (i.e., (o - e)^2 / e), "dev_std" for the standardized differences between the observed and expected frequencies (i.e., (o - e) / sqrt(e)), and "dev_perc" for the percentage difference between the observed and expected frequencies (i.e., (o - e) / e)
...
further arguments passed to or from other methods.

Details

See http://vnijs.github.io/radiant/quant/cross_tabs.html for an example in Radiant

See Also

cross_tabs to calculate results

plot.cross_tabs to plot results

Examples

Run this code
result <- cross_tabs("newspaper", "Income", "Newspaper")
summary(result, ct_check = c("observed","expected","chi_sq"))

Run the code above in your browser using DataLab