Question: 5. Import the bear data into R with the R command br=read.table(BearsData.txt, header=T), and form a data frame consisting only of the measurements with the
5. Import the bear data into R with the R command br=read.table(”BearsData.txt”, header=T), and form a data frame consisting only of the measurements with the R commands attach(br); bd=data.frame(Head.L, Head.W, Neck.G, Chest.G, Weight).3 The R command cor(bd)
returns a matrix of the pairwise correlations of all variables.
(The matrix is symmetric because rX,Y = rY,X, and its diagonal elements are 1 because the correlation of a variable with itself is 1.) Using this correlation matrix, which would you say are the two best single predictors of the variable Weight?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
