ParameterizeRegressionModel function
Prototype: |
function ParameterizeRegressionModel (TableOrLayer : TObjectWrapper; XAttributeName, YAttributeName, XLabel, YLabel, ChartCaption, ModelType, Options : string, out P1, P2, P3, Rcoef, Syx, Count : variant) : boolean; |
||||||||||||||||||||||||||||||||||||||||||||||
Description: |
Parameterizes the regression model of one dependent variable on one independent variable. |
||||||||||||||||||||||||||||||||||||||||||||||
Syntax: |
ParameterizeRegressionModel (TableOrLayer, XAttributeName, YAttributeName, XLabel, YLabel, ChartCaption, ModelType, YShift, P1, P2, P3, Rcoef, Syx, Count); |
||||||||||||||||||||||||||||||||||||||||||||||
Part |
Description |
||||||||||||||||||||||||||||||||||||||||||||||
TableOrLayer |
Table containing source variables |
||||||||||||||||||||||||||||||||||||||||||||||
XAttributeName |
The name of attribute used as independent variable |
||||||||||||||||||||||||||||||||||||||||||||||
YAttributeName |
The name of attribute used as dependent variable |
||||||||||||||||||||||||||||||||||||||||||||||
XLabel |
Label of x-axes |
||||||||||||||||||||||||||||||||||||||||||||||
YLabel |
Label of y-axes |
||||||||||||||||||||||||||||||||||||||||||||||
ChartCaption |
Chart caption |
||||||||||||||||||||||||||||||||||||||||||||||
ModelType |
String expression defining the type of regression curve |
||||||||||||||||||||||||||||||||||||||||||||||
Options |
List of input options (see below) |
||||||||||||||||||||||||||||||||||||||||||||||
P1 |
The first parameter of regression curve |
||||||||||||||||||||||||||||||||||||||||||||||
P2 |
The second parameter of regression curve |
||||||||||||||||||||||||||||||||||||||||||||||
P3 |
The third parameter of regression curve. If model with only two parameters is applied, than P3=NULL. |
||||||||||||||||||||||||||||||||||||||||||||||
Rcoef |
Coefficient of determination |
||||||||||||||||||||||||||||||||||||||||||||||
Syx |
Standard error |
||||||||||||||||||||||||||||||||||||||||||||||
Count |
Number of observations used for parameterization of function |
||||||||||||||||||||||||||||||||||||||||||||||
Return value: |
True/False |
||||||||||||||||||||||||||||||||||||||||||||||
Available model types: |
|
||||||||||||||||||||||||||||||||||||||||||||||
Available input options: |
|
||||||||||||||||||||||||||||||||||||||||||||||
Example:
Task:
Show parameterize regression model.

Data stored in the database.
Script:
var
P1_,P2_,P3_,Rcoef_,Syx_,Count_ :variant;
tb :TFieldMapTableScriptWrapper;
begin
tb := Trees.GetQueryResult('DBH_mm, Height_m','');
ParameterizeRegressionModel( tb,
'DBH_mm',
'Height_m',
'DBH, mm',
'Height, m',
Plots['Name'],
'POWER',
'X0=15; SHOWCHART=YES; SHOWEQUATION=NO; LINEWIDTH=17; X[1]=25.0; X[2]=50.0',
P1_,P2_,P3_,Rcoef_,Syx_,Count_)
Plots.SetValues('P1;P2;P3;Rcoef;Syx;n',[P1_,P2_,P3_,Rcoef_,Syx_,Count_]);
end.
Output in Field-Map Data Collector:

See also:
Mean; QuadraticMean; WeightedMean; Median; SampleVariance; StandardDeviation; StandardError; MeanError;VarianceOfMean; WeightedSampleVariance; WeightedStandardDeviation; WeightedVarianceOfMean;ConfidenceIntervalOfMean; VarianceOfTotal; ConfidenceIntervalOfTotal; StratifiedConfidenceIntervalOfTotal; SampleSize;ShowDistributionChart; ParameterizeRegressionModel; CalculateModelValue
© 2024 IFER-Monitoring and Mapping Solutions