Question: ** PLEASE ANSWER ONLY IN R. IF YOU DO NOT KNOW THE LANGUAGE PLEASE IGNORE. Question 2 1 pts Suppose regs.out is a list of
** PLEASE ANSWER ONLY IN R. IF YOU DO NOT KNOW THE LANGUAGE PLEASE IGNORE.
Question 2 1 pts Suppose regs.out is a list of 100 Im objects -- i.e. each element of regs.out was returned by a call to Im. What does the code sapply(regs.out,function(x){return(sum(x$residuals^2)}}) return? O Avector of length 100, each entry of which is the sum of squared residuals from the regression whose results are stored in the corresponding entry of regs.out. O Alist with 100 elements, each of which is the vector of residuals from the regression whose results are stored in the corresponding entry of regs.out. O Alist with 100 elements, each of which is the sum of squared residuals from the regression whose results are stored in the corresponding entry of regs.out. O Avector consisting of the residuals from each of the regression models whose output is stored in regs.out, stacked in the order in which the models appear in regs.out
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
