search for: logsal

Displaying 3 results from an estimated 3 matches for "logsal".

2009 Apr 02
1
calculating drop1 R^2s
...term dropped. Working example: library(vcd) # for Baseball library(car) # for vif/recode data(Baseball) # sal87 appears as a factor because missing is coded as '.' rather than NA Baseball$sal87 <- as.numeric(recode(Baseball$sal87, "'.'=NA")) Baseball$logsal <- log(Baseball$sal87) base.mod <- lm(logsal ~ years+atbat+hits+homeruns+runs+rbi+walks, data=Baseball) vif(base.mod) (drop.mod <- drop1(base.mod)) Single term deletions Model: logsal ~ years + atbat + hits + homeruns + runs + rbi + walks Df Sum of Sq RSS AIC <non...
2012 May 25
1
Correlograms: using boxes and different variables on rows and columns
I'm trying to make correlograms using corrgram. See below for a simple example. #### library(corrgram) data(baseball) vars1 <- c("Assists","Atbat","Errors","Hits","Homer","logSal") vars2 <- c("Putouts","RBI","Runs","Walks","Years") corrgram(baseball[,vars2],lower.panel=panel.shade, upper.panel=panel.pie) #### I am having two problems: 1) I want to change the visual to "bars" (see Figure 1 on p. 3: http:/...
2010 Aug 19
1
Correlograms and linear regression
Dear all, I generated a Correlograms and used the panel.ellipse (confidence ellipse and smoothed line) option. Is there a way to get instead of the smoothed line the linear regression? Thanks, As hz -- View this message in context: http://r.789695.n4.nabble.com/Correlograms-and-linear-regression-tp2331071p2331071.html Sent from the R help mailing list archive at Nabble.com.