In reply to Safiya.

Thanks for writing. You are asking a complex question. If you are interested in SAS code, I suggest you post your question (and sample code) to the SAS Support Communities. If you are interested in a statistical response, I suggest posting to CrossValidated.