Question: Please help with Question #7 below. All questions have been posted as reference. I am in need of the code for the data step as
Please help with Question #7 below. All questions have been posted as reference. I am in need of the code for the data step as specified in #7.
Part A (30 pts):
- Research on SAS random number generation functions, such as RAND(). Understand how to use it to generate random variables from the standard normal distribution N(0,1).
- Use a 'DO.... END' loop to create the 100 obs, use variable name X. Use another DO loop of 600 rounds to generate a total of 600 samples, each with 100 obs. Now you have the proper dataset to work with. Note, you can refer to a loop as a sample in this case, since it is basically sampling from a standard normal distribution.
- Use a PROC MEANS step to calculate the sample mean of X for each sample. You will have 600 sample means.
- Then use another RPOC MEANS to find out the mean of these sample means. Is it close enough to the true mean of X, which is 0?
Part B (30 pts):
5. Now, repeat the above steps, but this time get 500 obs for each loop. Does the sample mean get closer to 0? Comment on what you saw.
Part C (40 pts):

2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
