ChristopherLucas / MatchingFrontier

Optimal pruning for imbalance minimization in causal inference
18 stars 8 forks source link

Add warning if a variable name is repeated twice in match.on argument #34

Open nielsenrich opened 4 years ago

nielsenrich commented 4 years ago

Roozbeh included the same variable twice in a long list of matching variables and got this unhelpful error message: Calculating Mahalanobis distances... Error in solve.default(cov(dataset[, matchVars])) : Lapack routine dgesv: system is exactly singular: U[18,18] = 0