jag009 ★★★ NJ, 2012-03-19 16:16 (4805 d 16:07 ago) Posting: # 8297 Views: 5,325 |
|
Gentleman, Could you please help me out with my sas code for the 95% upper confidence bound? I am in the process of writing the sas code for a 3-way partial rep study (1T, Reference Rep), I followed the codes from FDA's Progesterone guidance but I am stuck at the 95% upper confidence bound computation. How do you get SAS to compute using the (boundx, x) from IGLM2 and (boundy, y) from DGLM1?I got the correct data for IGLM2. DGLM1 is where I have issue, I got 2 sets of (boundy and y), 1 set from MODEL and 1 set from ERROR. The critbound computation should take (boundx, x) from IGLM2 and (boundy, y) from ERROR from DGLM1, correct? For some reason SAS took (boundy, y) from MODEL from DGLM1 along with (boundx, x) from IGLM2. It should've taken (boundy, y) from ERROR from DGLM1. Here is my code (partial)... . . proc glm data=scavbe; Thank you. Jag Edit: Category changed. BTW, if you are always addressing “Gentleman” (why singular?) you will decrease your chances getting answers from the ladies here. I know four female biostatisticians here personally. [Helmut] |
d_labes ★★★ Berlin, Germany, 2012-03-20 12:51 (4804 d 19:32 ago) @ jag009 Posting: # 8304 Views: 4,264 |
|
Dear Jag! ❝ DGLM1 is where I have issue, I got 2 sets of (boundy and y), 1 set from MODEL and 1 set from ERROR. To be more correct you got 3 rows in the dataset dglm1. One with Source="Model", one with source="Error" and one with source="Corrected Total". The latter has no value for MS ("Mean Square") and thus no value for s2WR in your data step of obtaining dglm1a and thus also no value for y and and boundy in the subsequent steps. ❝ The critbound computation should take (boundx, x) from IGLM2 and (boundy, y) from ERROR from DGLM1, correct? Yep. ❝ For some reason SAS took (boundy, y) from MODEL from DGLM1 along with (boundx, x) from IGLM2. It should've taken (boundy, y) from ERROR from DGLM1. Not for some reason but for the reason your code has told SAS to do so ![]() Since you only need the MS of the error term thus code accordingly. The progesterone guidance is here only cursory. Seems they presuppose some basic understanding what to do ![]() Best choice (for me ![]()
... Or you could do it later on, f.i.:
... Or even more later:
... Its always a good habit in SAS programming not to rely on the implicit involved run; but write it down explicitly.BTW: We had this theme already in this thread. — Regards, Detlew |
jag009 ★★★ NJ, 2012-03-23 16:51 (4801 d 15:32 ago) @ d_labes Posting: # 8327 Views: 4,132 |
|
Thank you D_labes ![]() |