Hi, I am trying to make my own module but I have unexpected errors. The following is my module. Proc iml; Start op_fun (parm) Global (start0, f, h ,a ,b, sigma_eta, sigma_e, y, rowz, rowy, coly, fix_f, fix_h, fix_a, fix_b, fix_sigma_eta, fix_sigma_e, pred, vpred, filt, vfilt); Mu0 = &mu0.; Sigma0= &sigma0.; Run Unpack_parm (f, h ,a ,b, sigma_eta, sigma_e, var, rowz, coly, fix_f, fix_h, fix_a, fix_b, fix_sigma_eta, fix_sigma_e, parm); Call KALCVF (pred, vpred, filt, vfilt, y, 0, a, f, b, h, var, mu0, sigma0); Et = y – pred*h`; Const= 0.5 * coly * rowy * log ( 2* constant ('PI')); Sum1=0; Sum2=0; Do i=1 to rowy; Vpred_i = vpred [(i-1)*rowz+1: i*rowz,]; Ft=h*vpred_i*T(h) + var [rowz+1:rowz+coly, rowz+1:rowz+coly]; Neg_PED = const + 0.5 * (sum1 + sum2); if (det(ft)<1E-8) then return (1E10); et_i =et [i,]; sum1= sum1+log(det(ft)); sum2=sum2+et_i*inv(ft)*T(et_i); end; Return (neg_PED); Finish op_fun; However, I've got an error message saying that "Module OP_FUN was not defined due to resolution errors." What is resolution errors? and how should I fix this problem? I am using SAS 9.4.
... View more