//
//Liner Regression command
//

//Syntax
reg [target] by [explanations];
//Option
//Set intercept value.  intercept=none means that intercept value is calculated.
intercept=none  //(defalut)
intercept=0


//Example 1 3D regression.
get iris.csv@;

//View plot property of iris by species. plot PetalL SepalL SepalW by Species;

//Execute liner regression that makes 2D surface. reg PetalL by SepalL SepalW;

//get regression coefficent from output. get freq@ana; //Seting only parameter 'reg', plot regression surface with 3D data. plot reg;


Rotate coordination to view all node position on regression surface.

//Example 2 4D regression. get iris.csv@; //Execute liner regression in 4D. reg PetalL by SepalL SepalW PetalW;

//get regression coefficent from output. get freq@ana; //As regression is 3D, cannot view regression cube. //So plot real and model target data of each records for comparison only. plot reg;

plot real and model target data of each records. because regression cube cannot be viewed.