Hi All, I need help with creating the dummy data for lborres variable using the attached document. To create the dummy data for lborres below are the rules. For lab tests with numeric result and character (TESTNAME in Test1): 1) Set non-missing lborres as blank. 2) Generate random lborres values between minimum and maximum values of unblinded ‘LBORRES’. Make sure the maximum length of LBORRES (dummy) in blinded data is same as in unblinded data. 3) If unblinded ‘LBORRES’ contains ‘<xxx’ or ‘>xxx’, randomly assign from 5% -10% blinded ‘LBORRES’ as ‘<xxx’ or ‘>xxx’. 4) If unblinded ‘LBORRES’ contains other special marks or text with no digits (if applicable), randomly assign from 5% -10% blinded ‘LBORRES’ as the special marks or text. 5) Concatenate blinded dataset for all the combinations of lab test. For lab tests with character result (TESTNAME equal Test2): 1) Set non-missing ‘LBORRES’ as blank. 2) Generate random ‘LBORRES’ values of ‘negative’ or ‘positive’. Make sure the maximum length of LBORRES (dummy) in blinded data is same as in unblinded data. i didn't used rand function much, i tried some ways it didn't worked. Can you please help with this one. Thank You. Regards, Bhavani.
... View more