Skip to main content
. 2023 Feb 13;20(4):3289. doi: 10.3390/ijerph20043289
Algorithm 1 Attribute weighted logistic regression
Input: training data
1: For each attribute xi in the training data
    - Compute χi2 following Equation (4)
    - Compute wi following Equation (6)
2: Incorporate attribute weights to train the weighted LR model (following Equation (3))
   If wi = 0 then set aln(wi) = 1 × 10−10
     Else if (βi > 0 and wi > 1) or (βi < 0 and wi < 1) then a = positive
     Else if (βi > 0 and wi < 1) or (βi < 0 and wi > 1) then a = negative