STAT 4360 Assignment 6

STAT 4360 Assignment 6 - E = matrix( c(3, 2, 4, 0, 1, 6, 0,...

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

View Full Document Right Arrow Icon
Sheet1 Page 1 ###Question1### x = c(0,1,0,NA,0,0,0,0,0,1,1,1,0,0,3,0,0,0,0,0,2,0,1) factor(x, levels = c("0","1","2","3","NA")) table(factor(x, levels = c("0","1","2","3","NA"))) mean(x,na.rm=TRUE) ###Question2### ##a.## data(mtcars) mtcars ##b.## names(mtcars) ##c.## max(mtcars$mpg) ##d.## mtcars[mtcars$mpg==33.9,] ##e.## mtcars[rownames(mtcars)=="Valiant",4] ##f.## mtcars[1:5,] ##g.## mtcars[rownames(mtcars)=="Merc 450SLC",] ##Question3## A = matrix( c(2, 4, 6), nrow=1, ncol=3) B = matrix( c(3, 2, 5), nrow=3, ncol=1) C = matrix( c(3, 6, 2, 4), nrow=2, ncol=2) D = matrix( c(3, 8, 8, 0), nrow=2, ncol=2)
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: E = matrix( c(3, 2, 4, 0, 1, 6, 0, 2), nrow=2, ncol=4) F = matrix( c(0, 1, 3, 2, 4, 0, 6, 0, 1), nrow=3, ncol=3) Sheet1 Page 2 G = matrix( c(2, 6, 3, 6, 4, 1, 3, 1, 7), nrow=3, ncol=3) H = matrix( c(4, 0, 0, 0, 2, 0, 0, 0, 5), nrow=3, ncol=3) I = matrix( c(1, 0, 0, 0, 1, 0, 0, 0, 1), nrow=3, ncol=3) O = matrix( rep(0,each=8), nrow=2, ncol=4) ## a. ## 2*C+4*D ## b. ## 4*F-G ## c. ## 2*G ## d. ## t(A)+2*B ## e. ## A+2*t(B) ## f. ## I*G ## g. ## E %*% t(E) ## h. ## t(E) %*% E ## i. ## A %*% t(A) ## j. ## solve(H) %*% G...
View Full Document

This note was uploaded on 06/06/2011 for the course STAT 4360 taught by Professor Park during the Spring '11 term at UGA.

Page1 / 2

STAT 4360 Assignment 6 - E = matrix( c(3, 2, 4, 0, 1, 6, 0,...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online