You are on page 1of 1

1.

1)
dl=read.csv("C:/Users/loc/OneDrive/Desktop/book1.csv", header = T)
cor(dl[c(1:10),c("age","iq","weight")])
cov(dl[c(1:10),c("age","iq","weight")])

1.4)
V <- rbind(c(3.8778, 2.8110, 3.1480, 3.5062),c(2.8110, 2.1210, 2.2669, 2.5690),
c(3.1480, 2.2669, 2.6550, 2.8341), c(3.5062, 2.5690, 2.8341, 3.2352))
cov2cor(V)

You might also like