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

USE R Programming Language Please 1. Write the following function: input: a

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!