Learn R Programming

BMSC (version 0.2.1)

predict,ConstrainedLinReg-method: Compute predictions from constraint estimation model

Description

Computes prediction from model of class ConstrainedLinReg and a data.frame.

Usage

# S4 method for ConstrainedLinReg
predict(object, newdata)

Arguments

object

Model of class ConstrainedLinReg

newdata

data.frame containing all variables that appear in the model formula

Value

Numeric vector of predictions. For observations with missing values on the explanatory variables, a prediction of NA is returned.