insongkim / PanelMatch

113 stars 34 forks source link

User Tip for Error: "Data used to generate propensity scores is not linearly independent" #51

Closed marcgrinberg closed 2 years ago

marcgrinberg commented 4 years ago

The "caret" R Package has a function that helps you identify linear combinations in matrices:

library(caret)
findLinearCombos(problematic_matrix)
colnames(problematic_matrix)