Hey everyone, I have written some codes to calculate the P_margin for 4 different years. the code and the results are shown below. But I would like to have S for year 1 eq to 1. How can I modify this code ? Thanx so much 🙂 data B;
S=1;
P=0.02;
do year=1 to 4;
S=S*(1-P);
P_marg=S*P;
output;
end;
run;
... View more