TABLE OF CONTENTS
curveUpdate/updateregression [ Functions ]
NAME
updateregression --- update regression coefficients
FUNCTION
Recompute the RRegression structure for a new set of coefficients
SYNOPSIS
2168 updateregression <- function(regression, coef)
INPUTS
regression an RRegression structure coef new set of regression coefficients
OUTPUTS
regression RRegression structure with the lp component updated
SOURCE
2171 { 2172 regression$coefficients <- coef 2173 regression$lp <- drop(regression$covariates%*%regression$coefficients) 2174 return(regression) 2175 }