Question: USE R Programming Language Please 1. Write the following function: input: a n x p numerical matrix output: the correlation matrix, i.e. a symmetric matrix
USE R Programming Language Please

1. Write the following function: input: a n x p numerical matrix output: the correlation matrix, i.e. a symmetric matrix where each element is the correlation 2 (xinorm) between two columns, the correlation between two vectors x and y is 2:83 Write your own function for the standard deviation, you can use apply, sweep, sqrt, and sum. Do not use any loop. For the main function you can use the functions: length, diag, nrow, ncol, sum, prod, round, ceiling, sqrt. also: is.na, is. numeric, is.null and similar. You can use 2 loops
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
