csi | R Documentation |
This function performs a Chi Sqare test for association on two factors and returns reporting information on the model.
csi(x, y = NULL, z = NULL)
x |
A formula dependent variable ~ independent variable. |
y |
A data frame, necessary if data frame is not referenced in formula or piped in. |
A list of output for reporting $analysis_type, $results, $odds_ratio, $observed, $expected, $standardized_residuals, $contribution, $table_percentages, $column_percentages, $row_percentages
x2_results <- x2_data %>% csi(class_rank ~ gender)
x2_results <- csi(class_rank ~ gender, x2_data)
x2_results <- csi(x2_data$class_rank, x2_data$gender)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.