R/residuals.cal.R

"residuals.cal" <-
function (object,...) 
{

obj=object

res = c()

for (i in 1:length(obj$models)) {

if (inherits(obj$models[[i]],c("lm","nls","loess")))
{
res = cbind(res,residuals(obj$models[[i]]));
colnames(res)[ncol(res)]=names(obj$models)[i];
}
}

res=as.data.frame(res);


return(res);

}

Try the quantchem package in your browser

Any scripts or data that you put into this service are public.

quantchem documentation built on May 30, 2017, 5:28 a.m.