ls.print(ls.out, digits=4, print.it=T)
freeny.ls <- lsfit(freeny.x, freeny.y) ls.print(freeny.ls) # look at the results freeny.summary <- ls.print(freeny.ls, print.it=F) # save themmy.report <- function(x, y, ...) { cat(paste("Regression of", substitute(y), "on",substitute(x)), "\n") cat(date(), "\n\n") ls.print(lsfit(x, y, ...)) }