Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: graphic
See also: grqq grqqu grppn

Quantlet: grqqn
Description: generates a quantile-quantile plot to compare a variable with a normal distribution.

Link:
Usage: dp = grqqn(x {,col})
Input:
x n x 1 vector, sample to be compared with a normal distribution
col optional scalar, color of the plot; default col = grc.col.black
Output:
dp list, composed graphical object

Example:
; loads the library graphic
library("graphic")
; generates a dataset with 160 observations
t  =(normal(25)-8)|(normal(25)+8)|normal(100)|(normal(10)+25)
; generates a qq-plot to compare t with a normal distribution
dp = grqqn(t)
; creates a display for plotting
d  = createdisplay(1,1)
; plots the qq-plot
show(d, 1, 1, dp)

Result:
Shows a qq-plot



Author: S. Klinke, 19960925 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006