| loglinear_analysis | R Documentation |
Conduct a loglinear analysis
loglinear_analysis( data = NULL, dv_name = NULL, iv_1_name = NULL, iv_2_name = NULL, iv_1_values = NULL, iv_2_values = NULL, output = "all", round_p = 3, round_chi_sq = 2, mosaic_plot = TRUE, report_as_field = FALSE )
data |
a data object (a data frame or a data.table) |
dv_name |
name of the dependent variable |
iv_1_name |
name of the first independent variable |
iv_2_name |
name of the second independent variable |
iv_1_values |
restrict all analyses to observations having these values for the first independent variable |
iv_2_values |
restrict all analyses to observations having these values for the second independent variable |
output |
type of the output. If |
round_p |
number of decimal places to which to round p-values (default = 3) |
round_chi_sq |
number of decimal places to which to round chi-squared test statistics (default = 2) |
mosaic_plot |
If |
report_as_field |
If |
loglinear_analysis(data = data.frame(Titanic), "Survived", "Sex", "Age")