The Create Line Fit wizard will create a line fitted to your data.
|
Resource
|
Description
|
|
X Data
|
The name of a dataset or function containing the input X values
e.g.
WORK.T3
Height
rnd(100)
|
|
Y Data
|
The name of a dataset or function containing the input Y values
e.g.
WORK.T2
Weight
rnd(100)
|
|
Function of X, Function of Y
|
It is possible to apply a function to the input Data. Choices include:
None, Logarithm or Inverse
|
|
Filter
|
An expression which can be used to specify which points of the input
data are used. If the expression evaluates to true, then the corresponding
values in the X and Y Data are used to create the Line fit e.g.
WORK.Height>4 and WORK.Sex=”Male”
|
|
Line fit
|
The power of the curve that is fitted
Line Regression fits a straight line
Quadratic fits a parabola.
|
|
Name
|
The data for the line fit calculated by Gsharp are stored in a
folder called ANALYZE. E.g. If Name is set to linefit1 then
ANALYZE.linefit1_x contains the input X data
ANALYZE.linefit1_y contains the input Y data
ANALYZE.linefit1_xfit contains the X data of the fitted curve
ANALYZE.linefit1_yfit contains the Y data of the fitted curve.
ANALYZE.linefit1_coeffs contains the co-efficients of the best polynomial
to fit the data. e.g. if coeffs is 2 // 1 then the curve would y
= 2x + 1
ANALYZE.linefit1_correlation - contains the correlation of the X
data to the Y Data.
|
|
Viewport
|
There are three options on where to create the histogram viewports
Re-use – re-use the most recent viewport created by either
Linefit or histrogram.
New and Tile – create a new viewport and then tile all viewports
to be side by side.
New on top – create a new viewport in the default position
and do not adjust the existing viewports. The user should then move
and resize the histogram to the required position.
|
|
Show Statistics
|
If this option is selected then the best fitting line is shown
as a note on the page.
|