search for: multivarplot

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

2007 Mar 18
1
simple multivariate linear model plot
Dear R-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....