# Return to Minitab macro index

# How to save this page as a macro

# NORM.MAC
#
# Makes a (quick) normal probability plot.
#
# 03/12/98
# DKN
#

macro
norm x


#################################
###       declarations        ###
#################################
mcolumn x zscores tmp tmp2
mconstant obs miss

#################################
###          main body        ###
#################################

brief 0

count x obs
Set tmp
 1 : obs
End.
let tmp2 = tmp

Sort x tmp x tmp;
  By x.

# Now account for missing entries
let tmp2 = tmp2 +x -x

nscores tmp2 zscores.

Sort x zscores x zscores;
  By tmp.

gstd
brief 2
plot x zscores.

endmacro