public double degreesOfFreedom() {
   double ni = Double.valueOf(nItems).doubleValue();
   double m = (ni * (ni + 1.0)) / 2.0;
   double df = m - model.getNumberOfParameters();
   return df;
 }
 public double bic() {
   double b = chisquare() + model.getNumberOfParameters() * Math.log(numberOfExaminees) * nItems;
   return b;
 }