much faster way to compute proportion of vars that matter