doe_fit_model Function

public function doe_fit_model(nway, x, y, map, alpha, err) result(rst)

Uses

Fits a Taylor series model to the provided data.

Arguments

Type IntentOptional Attributes Name
integer(kind=int32), intent(in) :: nway

The number of interaction levels.

real(kind=real64), intent(in), dimension(:,:) :: x

The M-by-N matrix containing the M values of each of the N factors used to produce the results.

real(kind=real64), intent(in), dimension(:) :: y

An M-element array containing the results from the M experiments.

logical, intent(in), optional, target, dimension(:) :: map

An optional array of the same size as beta that can be used to eliminate a parameter from the model (false), or keep a parameter in the model (true). If not supplied, all parameters will be assumed to be part of the model as if the array were filled with all true values.

real(kind=real64), intent(in), optional :: alpha

The significance level at which to evaluate the confidence intervals. The default value is 0.05 such that a 95% confidence interval is calculated.

class(errors), intent(inout), optional, target :: err

A mechanism for communicating errors and warnings to the caller. Possible warning and error codes are as follows. - FS_NO_ERROR: No errors encountered. - FS_ARRAY_SIZE_ERROR: Occurs if x and y are not properly sized relative to one another. - FS_MEMORY_ERROR: Occurs if there is a memory allocation error. - FS_INVALID_ARGUMENT_ERROR: Occurs if nway is out of range, or if map is used to "turn off" all model parameters.

Return Value type(doe_model)

The resulting model.


Contents