double function ( ) { RealVector loc0 = calculateResiduals ( ) ; return loc0 . dotProduct ( loc0 ) / ( xMatrix . getRowDimension ( ) - xMatrix . getColumnDimension ( ) ) ; }
calculates the variance of the error term . uses the formula var u = u & middot ; u / n - k where n and k are the row and column dimensions of the design matrix x. concode_field_sep boolean noIntercept concode_elem_sep RealMatrix xMatrix concode_elem_sep RealVector yVector concode_field_sep boolean isNoIntercept concode_elem_sep void setNoIntercept concode_elem_sep double estimateErrorVariance concode_elem_sep RealVector calculateResiduals concode_elem_sep double estimateRegressandVariance concode_elem_sep double[][] estimateRegressionParametersVariance concode_elem_sep RealMatrix calculateBetaVariance concode_elem_sep double calculateYVariance concode_elem_sep void newYSampleData concode_elem_sep void newXSampleData concode_elem_sep void newSampleData concode_elem_sep double[] estimateResiduals concode_elem_sep RealMatrix getX concode_elem_sep void validateSampleData concode_elem_sep RealVector getY concode_elem_sep void validateCovarianceData concode_elem_sep double estimateRegressionStandardError concode_elem_sep RealVector calculateBeta concode_elem_sep double[] estimateRegressionParameters concode_elem_sep double[] estimateRegressionParametersStandardErrors