Question: programming R Exercise 2.6. The function rnorm() generates normal random variables. For instance, rnorm(10) gives a vector of 10 i.i.d. standard normals. Gen- erate 20
Exercise 2.6. The function rnorm() generates normal random variables. For instance, rnorm(10) gives a vector of 10 i.i.d. standard normals. Gen- erate 20 standard normals, and store them as x. Then obtain subvectors of (i) the entries in x which are less than 1; (ii) the entries between - 1 and 1; (iii) the entries whose absolute value is larger than 1.5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
