Library: | graphic |
See also: | grqq grqqu |
Quantlet: | grqqn | |
Description: | Generates a quantile-quantile-plot to compare a variable with a normal distribution. |
Usage: | bp = grqqn (x{, col}) | |
Input: | ||
x | n x 1 vector | |
col | color | |
Output: | ||
bp | composed graphical object |
; loads the library graphic library ("graphic") ; generate a dataset with 160 observations t = (normal(25)-8)|(normal(25)+8)|normal(100)|(normal(10)+25) ; generate a qq-plot to compare t with a normal distribution bp = grqqn (t) ; create a dispplay for plotting d = createdisplay (1,1) ; plot the qq-plot show (d, 1, 1, bp)
shows a qq-plot
Library: | graphic |
See also: | grqq grqqu |