Question: Set the seed value, and generate a random variable X for 1,000 observations based on the uniform distribution for values between -5 and 5.
Set the seed value, and generate a random variable X for 1,000 observations based on the uniform distribution for values between -5 and 5. Generate a variable Z based on a uniform distribution over-2 and 2. Generate a variable Y = 3*X-Z+e, where e is a random normal distribution with mean 0 and standard deviation 1. Create a data frame to include these variables, your command should look like: Mydata
Step by Step Solution
There are 3 Steps involved in it
Answer Question C... View full answer
Get step-by-step solutions from verified subject matter experts
