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