search for: multivarfit

Displaying 1 result from an estimated 1 matches for "multivarfit".

2007 Mar 18
1
simple multivariate linear model plot
...users, I am trying to get a simple plot for a linear model. The following function does the job of getting all the plots of the lm function but the "main" plot. multivarplot <- function(...){ x1 <- rnorm(10); x2 <- rnorm(10); x3 <- rnorm(10) y <- rnorm(10) multivarfit <- lm(y ~ x1 + x2 + x3) par(mfrow = c(3,2)) plot.lm(multivarfit) } where the "main" plot is graph of the variable (fitted : x1 + x2 + x3 ) against y. This is similar to the graph in Phil Spector's book (intro to the S and Splus) p. 227. It seems to be a very simple task...