Good day
I have this error and don't know how to fix it. Help would be appreciated.
proc iml;
print 'Question 1';
call randseed(123);
alpha=6;
nvec={250};
num_sim=10000;
free keep1;
do i=1 to nrow(nvec);
n=nvec[i,];
do j=1 to num_sim;
u=randfun(n,'uniform',alpha);
x=4/((1-u)**(1/alpha));
T=mean(x)*(1/(mean(x)-4));
keep1=keep1//(n||T);
end;
end;
free keep2;
do k=1 to nrow(keep1) by num_sim;
e_T=mean(keep1[k:k+(num_sim-1),2]);
bias_T=e_T-a;
var_T=var(keep1[k:k+(num_sim-1),2]);
mse_T=var_T-bias_T##2;
keep2=keep2//(e_T||bias_T||var_T||mse_T);
end;
free results;
results=nvec||keep2;
colnames_keep3='n'||'E[T]'||'Var[T]'||'Bias[T]'||'mse[T]';
print results[colname=colnames_keep3];
quit;
Show us the log. Include the entire PROC IML portion code and NOTES, WARNINGS and ERRORs. Do not chop anything out of the log from the PROC IML segment.
When providing the log, it is critical that you maintain the formatting of the log so we can see it exactly as SAS showed it to you, making it easier for us to use. To maintain the formatting of the log, click on the </> icon and paste the log as text into the window that appears. DO NOT SKIP THIS STEP.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.