{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

RPerform - Performance in Class Data Model Section with all...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Performance in Class Data Model Section with all Subsets > library(leaps) > performance.data <- read.table("/home/rrandles/Desktop/performance.txt", col.names=c("points","att","anote","aprob","aread","arow","astudy","asleep","atv")) > attach(performance.data) > performance.data > subs <- regsubsets(points~.,data=performance.data,nbest=5,method=c("exhaustive")) > summary(subs) Subset selection object Call: regsubsets.formula(points ~ ., data = performance.data, nbest = 5, method = c("exhaustive")) 8 Variables (and intercept) 5 subsets of each size up to 8 Selection Algorithm: exhaustive att anote aprob aread arow astudy asleep atv 1 ( 1 ) "*" " " " " " " " " " " " " " " 1 ( 2 ) " " "*" " " " " " " " " " " " " 1 ( 3 ) " " " " " " " " " " "*" " " " " 1 ( 4 ) " " " " " " " " " " " " " " "*" 1 ( 5 ) " " " " " " " " " " " " "*" " " 2 ( 1 ) "*" " " "*" " " " " " " " " " " 2 ( 2 ) "*" " " " " " " " " " " " " "*" 2 ( 3 ) "*" "*" " " " " " " " " " " " " 2 ( 4 ) "*" " " " " " " " " "*" " " " " 2 ( 5 ) "*" " " " " " " " " " " "*" " " 3 ( 1 ) "*" " " "*" " " " " "*" " " " " 3 ( 2 ) "*" " " "*" " " " " " " " " "*" 3 ( 3 ) "*" "*" " " " " " " " " " " "*" 3 ( 4 ) "*" "*" " " " " " " "*" " " " " 3 ( 5 ) "*" "*" "*" " " " " " " " " " " 4 ( 1 ) "*" " " "*" " " " " "*" " " "*" 4 ( 2 ) "*" "*" " " " " " " "*" " " "*" 4 ( 3 ) "*" "*" "*" " " " " "*" " " " " 4 ( 4 ) "*" " " "*" " " " " "*" "*" " " 4 ( 5 ) "*" " " "*" "*" " " "*" " " " " 5 ( 1 ) "*" "*" "*" " " " " "*" " " "*" 5 ( 2 ) "*" " " "*" "*" " " "*" " " "*" 5 ( 3 ) "*" " " "*" " " " " "*" "*" "*" 5 ( 4 ) "*" " " "*" " " "*" "*" " " "*" 5 ( 5 ) "*" "*" "*" "*" " " "*" " " " " 6 ( 1 ) "*" "*" "*" "*" " " "*" " " "*" 6 ( 2 ) "*" "*" "*" " " " " "*" "*" "*" 6 ( 3 ) "*" "*" "*" " " "*" "*" " " "*" 6 ( 4 ) "*" " " "*" "*" " " "*" "*" "*" 6 ( 5 ) "*" " " "*" "*" "*" "*" " " "*" 7 ( 1 ) "*" "*" "*" "*" " " "*" "*" "*" 7 ( 2 ) "*" "*" "*" "*" "*" "*" " " "*" 7 ( 3 ) "*" "*" "*" " " "*" "*" "*" "*" 7 ( 4 ) "*" " " "*" "*" "*" "*" "*" "*" 7 ( 5 ) "*" "*" "*" "*" "*" "*" "*" " " 8 ( 1 ) "*" "*" "*" "*" "*" "*" "*" "*"
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
> result1 <- with(performance.data,leaps(cbind(att,anote,aprob,aread,arow,astudy,asleep,atv),points,metho d="r2",nbest=5)) > result1$r2 0.236954735 0.025244857 0.020646532 0.017912376 0.006492919 0.256081848 0.248988757 0.248379527 0.244765876 0.237815609 0.270822642 0.265954134 0.263602187 0.261099754 0.259610711 0.281615182 0.278721964 0.276719138 0.272832043 0.272116346 0.290739874 0.282414751 0.282024497 0.281706647 0.279951519 0.293524833 0.290976415 0.290747991 0.282906669 0.282509173 0.293863233 0.293542998 0.290976502 0.283112545 0.282348477 0.293863525 > result2 <- with(performance.data,leaps(cbind(att,anote,aprob,aread,arow,astudy,asleep,atv),points,metho d="adjr2",nbest=5)) > result2$adjr2 [1] 0.225733481 0.010910222 0.006244275 0.003469911 -0.008117480
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}