Hello
I have m failure observations X_1,X_2,...,X_m. The study ends at time (T) I may observe the mth failure before time T and I may not. If the mth failure is observed after time T then I have to know its value. However, I don't know how to write that part and I really appreciate any help.
AT the same time I need to know the failure value that took place just before T and its position, i.e. the j value such that X_(j) < T < X_(j+1). For this I wrote the code below
call sortndx(idx, x, 1);
do idx=1 to m;
if (( X[idx] < T) & (X[idx+1] > T)) then j=idx;
end;
print j;
Unfortunately, I keep on getting the following error message
