This function generates a heatmap of the Phi coefficient for the association between binary variables in the provided dataset. The Phi coefficient measures the association between two binary variables, and the function also performs chi-square tests for each pair of variables.
Arguments
- Data
A dataframe containing the variables of interest.
- xVars
A vector of variable names for the x-axis (predictor variables).
- yVars
A vector of variable names for the y-axis (outcome variables).
- Relabel
A logical indicating whether to relabel the variables with their labels (default is TRUE).
- Ordinal
A logical indicating whether to consider ordinal variables when determining binary variables (default is TRUE).
Value
A list containing the following components:
- Unadjusted
A list of results containing the Phi coefficients, p-values, and number of pairs for each variable combination.
- FDRCorrected
A list containing FDR-corrected p-values.
- method
A string indicating that the method used is "Phi".
- Relabel
The relabel parameter.
- Covariates
Currently set to NULL, as covariates are not implemented in this function.