Question: Please help with R coding!!!! Consider the following R-code. set.seed (50) n=50 x1 runif (n ,10,30) x2 = runif (n ,5 , 15) x3 =
Consider the following R-code. set.seed (50) n=50 x1 runif (n ,10,30) x2 = runif (n ,5 , 15) x3 = runif(n, 100 ,300) x4runif (n,50,70) sigma = 40 e rnorm (n,mu-0, sigma-1) b0 = 3; b2 = -11; b3 = -6; b4 = 7; y b0+ bl*x1 + b2*x2 + b3*x3 + b4*x4 + sigma e fit lm (y ~ x1+x2+x3+x4)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
