case class Lm(y: DenseVector[Double], Xmat: DenseMatrix[Double], colNames: Seq[String], addIntercept: Boolean) extends Model
Linear regression modelling
- Value Params
- Xmat
Covariate matrix
- addIntercept
Add an intercept term to the covariate matrix?
- colNames
List of covariate names
- y
Vector of responses
- Returns
An object of type Lm with many useful attributes providing information about the regression fit
- Companion
- object
Value members
Concrete methods
Predictions for a new matrix of covariates
Predictions for a new matrix of covariates
- Value Params
- newX
New matrix of covariates
- Returns
Prediction object
Inherited methods
Concrete fields
Vector containing the leverages (diagonal of the hat matrix)
Vector containing the leverages (diagonal of the hat matrix)