Question: Please help me with some Statistics Questions using R code to solve. Thank you so much 4.Ask user to enter as much as number. To

Please help me with some Statistics Questions using R code to solve. Thank you so much

4.Ask user to enter as much as number. To finish entering the numbers, the user has to writestop. When all the values available, calculate the mean, variance, standard deviation, minimum and maximum of the given values.

Hint: an empty vector by usingvector(). You can calculate the mean, variance, standard deviation, minimum and maximum of the given values by usingmean, var, sd, max and min, respectively.

5 How to get thenthsmallest value of given array? (Use for loop for this problem. Do not use existing codes and sort functions.

For example, in given list [11,23,58,31,56,77,43,12,65,19], if n is defined as 3. The program will print 19.

6.How to get thenthlargestevenvalue of given array? (Usewhile loop and if-statementfor this problem. Do not use existing codes.For example, in given list [10,36,58,31,56,77,43,12,65,19], if n is defined as 2. The program will print 56.

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!