Field-Map Scripting

4.1.3.2.20 CalculateModelValue

CalculateModelValue function


Prototype:

function CalculateModelValue (const ModelType :string, const P1, P2, P3, Yshift :variant, const VarValue :variant) : variant;

Description:

Calculates the value of response variable (Y) based on specified model and specified value of independent variable (X).

Syntax:

variable := CalculateModelValue (ModelType, P1, P2, P3, Yshift, VarValue);


Part

Description


variable

A variable declared as variant


ModelType

String expression defining the type of regression curve (see ParameterizeRegressionModel for details)


P1, P2, P3

Parameters of regression model (as estimated by ParameterizeRegressionModel)


Yshift

Variable


VarValue

Specific value of independent variable




Return value:

Estimate of value of dependent variable for specific value of independent variable



See also:

Mean; QuadraticMean; WeightedMean; Median; SampleVariance; StandardDeviation; StandardError; MeanError;VarianceOfMean; WeightedSampleVariance; WeightedStandardDeviation; WeightedVarianceOfMean;ConfidenceIntervalOfMean; VarianceOfTotal; ConfidenceIntervalOfTotal; StratifiedConfidenceIntervalOfTotal; SampleSize;ShowDistributionChart; ParameterizeRegressionModel; CalculateModelValue


Example