function tee = stud(n,alpha)
% Student's tee-statistic from table in App.D, Schaum's p.394. 
tee = 3.0;
if n >120
   if alpha >= .005
      tee = 2.58;
      if alpha >= .01
         tee = 2.33;
         if alpha >= 0.025
            tee = 1.96;
            if alpha >= 0.05
               tee = 1.645;
               if alpha >= 0.1
                  pv = 1.28;
               end
            end
         end
      end
   end
else
   if alpha >= .005
      tee = 2.62;
      if alpha >= .01
         tee = .05;
         if alpha >= 0.025
            tee = 1.98;
            if alpha >= 0.05
               tee = 1.66;
               if alpha >= 0.1
                  tee = 1.29;
               end
            end
         end
      end
   end
end
