@Override
 public Object getValueAt(int rowIndex, int columnIndex) {
   switch (columnIndex) {
     case 0:
       if (model.usesIntercept() && rowIndex == model.getCoefficients().length - 1) {
         return "(Intercept)";
       } else {
         return model.getSelectedAttributeNames()[rowIndex];
       }
     case 1:
       return model.getCoefficients()[rowIndex];
     case 2:
       return model.getStandardErrors()[rowIndex];
     case 3:
       return model.getStandardizedCoefficients()[rowIndex];
     case 4:
       return model.getTolerances()[rowIndex];
     case 5:
       return model.getTStats()[rowIndex];
     case 6:
       return model.getProbabilities()[rowIndex];
     case 7:
       double prob = model.getProbabilities()[rowIndex];
       if (prob < 0.001) return "****";
       else if (prob < 0.01) return "***";
       else if (prob < 0.05) return "**";
       else if (prob < 0.1) return "*";
       else return "";
   }
   return null;
 }
 @Override
 public int getRowCount() {
   return model.getCoefficients().length - (model.usesIntercept() ? 0 : 1);
 }