Package dev.nm.stat.regression.linear
Interface LinearModel
-
- All Known Implementing Classes:
ConstrainedLASSObyLARS,ConstrainedLASSObyQP,GeneralizedLinearModel,GeneralizedLinearModelQuasiFamily,LogisticRegression,OLSRegression,UnconstrainedLASSObyCoordinateDescent,UnconstrainedLASSObyQP
public interface LinearModelA linear model provides fitting and the residual analysis (goodness of fit).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LMBetabeta()Gets \(\hat{\beta}\) and statistics.doubleEy(Vector x)Computes the expectation \(E(y(x))\) given an input.LMResidualsresiduals()Gets the residual analysis of an OLS regression.
-
-
-
Method Detail
-
Ey
double Ey(Vector x)
Computes the expectation \(E(y(x))\) given an input.- Parameters:
x- an input- Returns:
- \(E(y(x))\)
-
beta
LMBeta beta()
Gets \(\hat{\beta}\) and statistics.- Returns:
- \(\hat{\beta}\) and statistics
-
residuals
LMResiduals residuals()
Gets the residual analysis of an OLS regression.- Returns:
- the residual analysis
-
-