adjusted_r_squared Function

public function adjusted_r_squared(p, x, xm, err) result(rst)

Computes the adjusted R-squared value for a data set.

The adjusted R-squared provides a mechanism for tempering the effects of extra explanatory variables on the traditional R-squared calculation. It is computed by noting the sample size and the number of variables . .

See Also:

Arguments

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

The number of variables.

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

An N-element array containing the dependent variables from the data set.

real(kind=real64), intent(in) :: xm(:)

An N-element array containing the corresponding modeled values.

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 xm are not the same size.

Return Value real(kind=real64)

The result.


Contents