Can anyone help with this one please, I do not quite understand the problem
Write a function (call it mylm) that takes two inputs: a vector y of n elements and a matrix X of n times k elements, where n should be greater than k, and returns two outputs: X'X and X'y (the prime symbol means transpose). Use the attr method to return the second output.