PredictLm

case class PredictLm(mod: Lm, newX: DenseMatrix[Double]) extends Predict

Prediction from a fitted linear (Lm) model

Value Params
mod

fitted linear model

newX

covariate matrix for predictions

Returns

An object of type PredictLm with several useful attributes, including .fitted and .se

trait Serializable
trait Product
trait Equals
trait Predict
class Object
trait Matchable
class Any

Value members

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product

Concrete fields

val fitted: DenseVector[Double]

fitted values

fitted values

val nX: DenseMatrix[Double]

New covariate matrix (including intercept, if required)

New covariate matrix (including intercept, if required)

lazy val se: DenseVector[Double]

standard errors for the predictions

standard errors for the predictions

lazy val xrti: DenseMatrix[Double]

for internal use (probably should be marked private)

for internal use (probably should be marked private)