(a) Write an R function rnormmax that has three arguments, n,
mu, and sigm,
# and returns...
50.1K
Verified Solution
Link Copied!
Question
Basic Math
(a) Write an R function rnormmax that has three arguments, n,mu, and sigm, # and returns the maximum of a vector of n random numbers from thenormal distribution # with mean mu and standard deviation sigm. Make the arguments muand sigm optional # with default values of 0 and 1, respectively.
# (b) Write an R code that replicates rnormmax(n=1000) hundredthousand times and creates # a histogram of the resulting vector via standard histfunction.