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: grxline gryline grlinreg2

Quantlet: grlinreg
Description: Generates a graphical object which contains a linear regression line from the data.

Link:
Usage: gl = grlinreg (x {, col})
Input:
x n x 2 matrix
col color
Output:
gl composed graphical object

Example:

library ("graphic")

x  = normal(100)

y  = 3*x+normal(100)

l  = grlinreg(x~y)

d  = createdisplay(1,1)

show(d,1,1,x~y,l)

Result:

shows the data and the linear regression line 


Library: graphic
See also: grxline gryline grlinreg2

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

Author: Sigbert Klinke, 961005
(C) MD*TECH Method and Data Technologies, 21.9.2000