public static double[] calculateTStats(double[] coef,double[] stderror,int k){
  double[] result=new double[k];
  for (int i=0; i < k; i++) {
    result[i]=coef[i] / stderror[i];
  }
  return result;
}

public static double [ ] calculateTStats ( double [ ] coef , double [ ] stderror , int k ) { double [ ] result = new double [ k ] ; for ( int i = 0 ; i < k ; i ++ ) { result [ i ] = coef [ i ] / stderror [ i ] ; } return result ; }
returns an array of the t - statistic of each coefficient in a multiple linear regression model .
