I am trying to solve this issue and I am very new to sas. Can someone please help me? Simulate 200 observations from the following linear model: Y = alpha + beta1 * X1 + beta2 * X2 + noise where • alpha=1, beta1=2, beta2=-1.5 • X1 ~ N(1, 4), X2 ~ N(3,1), noise ~ N(0,1) I have this so far but do not think its right. DATA ONE; alpha = 1; beta1 = 2; beta2 = -1.5; RUN; DATA CALC; SET ONE; DO i = 1 to 200; Y=alpha+beta1*X1+beta2*X2+Noise; X1=Rannor(1); X2=rannor(3); Noise=ranuni(0); OUTPUT; END; RUN; PROC PRINT DATA=CALC; RUN;
... View more