Question: Problem 2: (a)(15 pts) Write an R function rnormmax that has three arguments, n, mm, and sigm, and returns m maximum of a vector of

 Problem 2: (a)(15 pts) Write an R function rnormmax that has

Problem 2: (a)(15 pts) Write an R function rnormmax that has three arguments, n, mm, and sigm, and returns m maximum of a vector of :1 random numbers from the normal distribution with mean my and standard deviation sigm. Make the arguments my and Sign: optional with default values of 0 and 1= respectively. (b)(15 pts) Write an R code that replicates rnormmax) hundred thousand times and creates a histogram of the resulting vector via standard his: function (Note: break points must be reasonably chosen; experiment with various choices of breaks until you nd a good choice)

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!