Question: Using R to solve the problem. 1. 2 = (a) Using the 3x3 matrix of ones (i.e., all elements are one) and the vector (1,2,
Using R to solve the problem.
1. 2 = (a) Using the 3x3 matrix of ones (i.e., all elements are one) and the vector (1,2, ...,9), create the matrix 1 1/2 1/3) A 1/4 1/5 1/6 1/7 1/8 1/9 (b) Create a 2 x 2 matrix B from the first two rows and columns of A. (c) Using the diag() function twice, set all off-diagonal elements of A to 0. That is, from A, obtain the matrix 1 0 0 C= 10 1/5 0 0 ) 1/ (d) Using the cbind() and rbind() functions, augment C to obtain the matrix D = (1 0 0 1/5 0 0 5 5 0 4 0 4 1/94 5 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
