LRBmat (Binary matrix based on Logistic Regression) is proposed when there is complex interaction between covariates and heterogeneity between covariates and response variables.
This file mainly contains the subsequent required functions, including data generation function, variable selection function, heterogeneity test function, various classification function and so on.
This file is mainly the code of the simulation part, which mainly includes three parts: the first is the generation of data, the second is the comparison of several logistic models, and the third is the effect of binary matrix on other classification methods.
This part is the analysis of real world data. The main content is similar to simulation, but the difference is that the real data model includes the test of heterogeneity and the analysis of association rules.
The code is divided into two main parts. The first part demonstrates the classification of patients at different CRC stages and the problem of classifying adenoma (precancerous stage) and normal stages. The second part demonstrates two different approaches to the redundancy of association rules.