Hi, I want to calculate the weighted average of some variable the code looks like this Proc sql; Create table want as Select date, id, sum(value) as value, sum(Value1*Weight1)/sum(Weight1), sum(Value2*Weight2)/sum(Weight2), sum(Value3*Weight3)/sum(Weight3) from sasdata.monthly_return_fund_summary_adj group by wficn, caldt; quit; but this one it also take into account the missing values. How can I adjust the code such that only observed values are use and all the missing values are skipped. Thank you very much!
... View more