Hi there, i have some very basic questions. I am working on my homework at the moment and our prof. gave us this code: PROC IML;
n = 50;
pi = 0.5;
alpha = 0.025;
DO i = 1 TO 10000;
X = RANBIN(1,n,pi);
p = x/n; var = p*(1-p);
b_l = p - PROBIT(1-alpha/2) * sqrt(var) / sqrt(n);
b_u = p + PROBIT(1-alpha/2) * sqrt(var) / sqrt(n);
d_l = pi < b_l; d_u = pi > b_u; data = data//(p||b_l||b_u||d_l||d_u);
END;
CREATE sim_binomial FROM data;
APPEND FROM data; QUIT;
PROC MEANS data=sim_binomial;
VAR COL1-COL5;
RUN; and this output: we have to answer some questions about the output and code. I am not able to answer the following of them: What describes variable COL1 ? Wich distribution does we use ? (Where can i see that ?) What are the means of the confidence bounds ? (How do I calculate that? I know that this are very easy questions for you, but they are very difficult for me. Can anybody please help me out ? Thank you so much ! Best Regards, Tobias
... View more