jag009 ★★★ NJ, 2013-04-22 18:39 (4380 d 03:25 ago) Posting: # 10458 Views: 29,735 |
|
Hi everyone, I am getting some strange results using the FDA Progesterone Scaled Average Bioequivalence SAS Code → The portion to compute the Unscaled Average 90% C.I. PROC MIXED Should the Test/Reference Ratio from the Scaled Average BE computation be similar (if not the same) as the ratio computed from the above Unscaled Average BE code? Thanks John Edit: Category changed. [Helmut] |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2013-04-22 19:47 (4380 d 02:17 ago) @ jag009 Posting: # 10460 Views: 25,543 |
|
Hi John, ❝ Should the Test/Reference Ratio from the Scaled Average BE computation be similar (if not the same) as the ratio computed from the above Unscaled Average BE code? More details, pleeze! Define similar. ![]() Proc MIXED and the partial replicate by Proc GLM . You will see differences for incomplete data-sets (GLM drops subjects, MIXED keeps them).Even for a fully replicated design (but imbalanced and incomplete like EMA’s data set I) SAS’ merge will drop subjects. In Phoenix I get PEs of 1.1546132 (RSABE) and 1.1565765 (ABE). — Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
jag009 ★★★ NJ, 2013-04-22 22:33 (4379 d 23:30 ago) @ Helmut Posting: # 10464 Views: 25,450 |
|
Hi Helmut, Can you try this and let me know? Yes there are missing datapoints. The other 2 parameters worked out fine. I ran data from another study and everything worked as well. Only this dataset is giving me the finger. The difference is the missing values as other datasets had values for all subjects. Maybe the missing data is messing things up? Data columns are Subject Period Sequence Formulation PK-parameter My SAS SCABE for this parameter is Theta Bound y (S2wr) (sWR) (T/R) Pt Est 95% Upper Crit I ran Unscaled Avg BE (Progesterone guidance SAS code) T/R Ratio 90% CI ![]() Sequence 1=ABB, 2=BAB, 3=BBA 1 3 BBA A 31.432 Thanks John |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2013-04-23 00:10 (4379 d 21:54 ago) @ jag009 Posting: # 10466 Views: 25,206 |
|
Hi John, ❝ My SAS SCABE for this parameter is ❝ ❝ No need to post Theta (a constant in RSABE). ![]() My PHX6.3 code gives for RSABE … boundy S²wr Swr PE 95% upper ❝ I ran Unscaled Avg BE (Progesterone guidance SAS code) ❝ ❝ … and for ABE PE 90% CI But: PHX’ LME kicked my ass with “ Warning 11094: Negative final variance component. Consider omitting this VC structure. ” Nice. Old story with partial replicates – overspecified model since T is not repeated. We have seen in the past that SAS and PHX give different results in such a case. BTW, did you get “Convergence criteria met but final hessian is not positive definite. ” or somefink similar in Sas?If I go with the ABE-module I got: “ ERROR 11070: Error in Satterthwaite DF. Try using Residual DF option. ”… which I tried, only to get: “ ERROR 11070: Error in Satterthwaite DF. Try using Residual DF option. ”That’s funny! Same if I exclude subjects #14 and #31 (no results for T). What the heck? Running PHX’ PBE/IBE module I first obtained … Warning 11121: Subject 31 had incomplete design and was discarded. … and a PE which is exactly like in RSABE 89.899043 .— Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
Shuanghe ★★ Spain, 2013-04-23 13:45 (4379 d 08:18 ago) @ Helmut Posting: # 10471 Views: 25,073 |
|
Hi Helmut, ❝ My PHX6.3 code gives for RSABE … ❝ ❝ Just out of curiosity I tried my SAS macro and it only gives Swr, PE, 95% upper. They are the same as yours, which is slightly different from John's. ❝ ❝ I ran Unscaled Avg BE (Progesterone guidance SAS code) ❝ ❝ ❝ ❝ ❝ ❝ … and for ABE ❝ ❝ 104.782 69.7855 – 157.328 Now, my average BE gives: PE: 1.01021 , same as John's ![]() 90% CI: 80.7733 - 126.3450 , different from both of yours. ![]() Weird. ❝ But: PHX’ LME kicked my ass with “ SAS did give me warning of " Convergence criteria met but final hessian is not positive definite". ❝ That’s funny! Same if I exclude subjects #14 and #31 (no results for T). What the heck? after delete subject 14 and 31, same result for SABE but for ABE: PE: 98.04322% 90% CI: 78.61817 - 122.26784 .Man, I never doubted the macro before. should I worry about it now? ![]() Shall we compare the result from EMA's data set? Edit: Just tried EMA's 3-period data set, using "logdata" directly from the dataset. SABE gives: Swr=0.11397 ABE gives the same result as in the EMA's Q&A. 102.264 (97.05-107.76) delete subject 5 and 8 (don't ask why those subjects) SABE gives: ABE gives: PE=101.218 Can anyone check it? — All the best, Shuanghe |
d_labes ★★★ Berlin, Germany, 2013-04-23 18:50 (4379 d 03:13 ago) @ Shuanghe Posting: # 10475 Views: 25,059 |
|
Hi Shuanghe, ❝ Now, my average BE gives: ❝ ❝ ❝ Weird. don't worry. My results (using Johns code for ABE as given above at start of the thread) under SAS9.2 are: point est. 90% confidence interval Deleting the 4 subjects with missings (same happens in the intra-subject contrast calculations) gives point est. 90% confidence interval very similar to the numbers used for the RSABE criterion ![]() But I don't believe in this numbers anyway. I think the optimizer stops here arbitrarily as almost ever for a partial replicate design in which the intra-individual variability for T is not identifiable. Any modification to the code, f.i. fitting a model with no subject-by-treatment interaction via the CS covariance structure crashes with infinite likelihood and an estimate of s2wT=0! I always wondered why the FDA insists on the Proc MIXED code, especially for that design. On the other hand in the context of RSABE linearized criterion the point estimator and its 90% CI are calculated via intra-subject contrast T-R. Why not use these results for ABE also ![]() To increase the confusion here the results of the mighty oracle EMA code (same Proc GLM as for a 2x2 crossover for the PE and CI, s2wR from analysis of data for R (B) only): point est. 90% confidence interval So much numbers to choose between ![]() — Regards, Detlew |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2019-11-12 14:01 (1985 d 07:02 ago) @ d_labes Posting: # 20788 Views: 11,176 |
|
Hi to all victims of the partial replicate with incomplete data, following extensive off-list discussions with PharmCat (who is working on a Julia-library; see here and there) I checked again what we got with the FDA’s covariance structure, Satterthwaite’s df (PE, 90% CI). Not the slightest idea how I arrived at the results given above. Sorry for the confusion caused.
FA0(1) instead of the FA0(2) in the guidance): Convergence without warning.— Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
jag009 ★★★ NJ, 2013-04-23 17:56 (4379 d 04:07 ago) @ Helmut Posting: # 10473 Views: 24,638 |
|
Hi Helmut and shanghue, ❝ That’s funny! Same if I exclude subjects #14 and #31 (no results for T). What the heck? Yes but Proc Mixed takes into account the missing data correct? Great, I opened up a Pandora's Box... Let me investigate further and let you guys know. Calling for Detlew the SAS guru (heheh, one of the gurus to be politically correct) ![]() Thanks John |
jag009 ★★★ NJ, 2013-04-23 19:07 (4379 d 02:57 ago) @ jag009 Posting: # 10476 Views: 25,716 |
|
Thanks guys (and girls), Here are the notes from my SAS Log on Proc Mixed. NOTE: 6 observations are not included because of missing values. I think this is problematic... One runs a dataset and SCABE criteria for Swr not met so he/she resorts to the ABE routine. Tada! Thanks John |
jag009 ★★★ NJ, 2013-04-30 23:09 (4371 d 22:55 ago) @ jag009 Posting: # 10515 Views: 25,149 |
|
Hi everyone, Continuing the sage... I now have full dataset and I included AUCt as well. Once again using the ABE procedure with Proc Mixed from FDA progesterone guidance. I was fine with ln AUCt but did get a message in the SAS log: NOTE: Convergence criteria met but final hessian is not positive definite. NOTE: Asymptotic variance matrix of covariance parameter estimates has been found to be singular and a generalized inverse was used. Covariance parameters with zero variance do not contribute to degrees of freedom computed by DDFM=SATTERTH. For AUCt Ratio: 94.7377; 90% CI: 87.4898-102.586 However, Proc Mixed failed to compute the above for ln AUCi and gave me a warning message in SAS log: WARNING: Did not converge. ![]() ![]() WARNING: Output 'Estimates' was not created.... The last output from Proc Mixed on ln AUCi was: Covariance Parameter Values At Last Iteration I used the same ABE SAS Code posted in the first message in this thread (and the codes are the same for AUCt and AUCi). The Dataset: Subject, Sequence, Period, Treatment, ln AUCt, ln AUCi. Sequence: ABB = 1, BAB = 2, BBA = 3 1 BBA 3 A 7.392949199 7.966255738 Any idea? Thanks John |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2013-05-01 18:21 (4371 d 03:42 ago) @ jag009 Posting: # 10517 Views: 24,986 |
|
Hi John, ❝ For AUCt ❝ Ratio: 94.7377; 90% CI: 87.4898-102.586 PHX tells me: Ratio: 94.7377; 90% CI: 87.4898–102.586 ![]() Warning 11091: Newton's algorithm converged with modified Hessian. Output is suspect. PHX after 6 iterations:
❝ However, Proc Mixed failed to compute the above for ln AUCi Contrary to SAS PHX ‘succeeded’ for AUCi as well … Ratio: 95.2967; 90% CI: 88.4014–102.730 … but throws the same warning as above. ❝ The last output from Proc Mixed on ln AUCi was: ❝ ❝ ❝ ❝ ❝ ❝ ❝ PHX after 6 iterations:
❝ Any idea? Nope. Let’s wait for the SAS-guru Detlew. ![]() IMHO, since a partial replicate according to FDA’s model is always (!) over-specified there is no guarantee that the LME-engine will converge. Don’t blame SAS and PHX; they warn us… Stupid design. If you want to have only three periods maybe it is better to run a fully replicated design (TRT|RTR) in the future. P.S.: You are not alone. Last week a colleague posted at Pharsight’s Extranet an example where a replicate design failed to converge for Cmax (but not for AUCt and AUC∞). Pharsight suggested to change the variance structure to Heterogeneous Compound Symmetry (instead of FDA’s Banded No-Diagonal Factor Analytic [f=2]). In my experience this rarely helps… BTW, does anybody know the rationale behind FDA’s partial replicate? Higher precision of the estimate of CVwR (see this post and followings)? — Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
jag009 ★★★ NJ, 2013-05-01 19:16 (4371 d 02:47 ago) @ Helmut Posting: # 10518 Views: 24,679 |
|
Thank you Helmut! Detlew, need help! ![]() Here is the covariance output from SAS on ln AUCt Covariance Parameter Estimates Question, what does the residual "formulation Test" represent? Is it the residual attributed to both test and ref, while residual "formulation ref" is attributed to the ref (since it was given 2x)? which one would one use to compute the 90% geometric CI then? ❝ IMHO, since a partial replicate according to FDA’s model is always (!) overspecified there is no guarantee that the LME-engines will converge. Don’t blame SAS and PHX; they warn us… Stupid design. If you want to have only three periods maybe it is better to run a fully replicated design (TRT|RTR) in the future. Any hint on the stat approach? Thanks John |
ElMaestro ★★★ Denmark, 2013-05-01 20:48 (4371 d 01:16 ago) @ jag009 Posting: # 10519 Views: 24,497 |
|
Hi John, ❝ Question, what does the residual "formulation Test" represent? Is it the residual attributed to both test and ref, while residual "formulation ref" is attributed to the ref (since it was given 2x)? which one would one use to compute the 90% geometric CI then? Can you ask SAS to spit out the covariance matrix? I mean the one corresponding to ZGZT+R ? Then I think you can definitely interpret the variabilities in the context of the model specification.— Pass or fail! ElMaestro |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2013-05-01 21:16 (4371 d 00:48 ago) @ jag009 Posting: # 10520 Views: 25,060 |
|
Hi John! ❝ Here is the covariance output from SAS on ln AUCt ❝ ❝ ❝ ❝ ❝ ❝ ❝ ❝ OK, similar again (except for the usual suspects). ❝ Question, what does the residual "formulation Test" represent? Nothing. Only a desperate attempt of the algo to estimate something based on too little information. Think about a parallel design. Intra-subject variability is there, but we cannot extract it (only the total/pooled). We need a cross-over. Same here. s²wT exists, but we have only one observation of T / subject. ❝ Is it the residual attributed to both test and ref, … Cough. ![]() ❝ … while residual "formulation ref" is attributed to the ref (since it was given 2x)? Correct. ❝ which one would one use to compute the 90% geometric CI then? None of them directly. PHX spits out a standard error of the difference T–R of 0.0474839 (too lazy to dig out the reference on how it is composed from the other variances).❝ ❝ IMHO, since a partial replicate according to FDA’s model is always (!) overspecified there is no guarantee that the LME-engines will converge. ❝ ❝ Any hint on the stat approach? No idea. I took the opportunity and massaged you data. I kept all subjects in sequence RTR, and recoded a little bit. Of course I had to change some Rs to Ts… I got: Subject Sequence Period Treatment lAUCt lAUCi Now I had a fully replicated design (TRT|RTR). No warnings, no problems with convergence. Unless some genius comes up with a model for the partial replicate which shows no problems with convergence I would avoid it in the future. Alternative: Send your data to [email protected]. ![]() — Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
d_labes ★★★ Berlin, Germany, 2013-05-02 14:00 (4370 d 08:04 ago) @ jag009 Posting: # 10522 Views: 24,775 |
|
Hi John, ❝ Detlew, need help! Here I am! But don't know if I can help anyway. The whole story "Use Proc MIXED code for Partial replicate design" is mysterious to me. ❝ Here is the covariance output from SAS on ln AUCt ❝ ❝ ❝ ❝ ❝ ❝ ❝ ❝ ❝ ❝ Question, what does the residual "formulation Test" represent? Is it the residual attributed to both test and ref No. As Helmut already pointed out: an ambiguous attempt of the REML algo to obtain the within-subject variance of the Test formulation. But IMHO the model is over-specified (s2D + s2wT not separable, see below) and therefore there is no guarantee that the value obtained is reasonable. ❝ while residual "formulation ref" is attributed to the ref (since it was given 2x)? Correct. Unambiguously identifiable. ❝ which one would one use to compute the 90% geometric CI then? Not clear to me what a 90% geometric CI is ![]() The difference µT-µR has as standard error associated with it for the partial replicate design sd = sqrt((s2D + s2wT + s2wR/2)*sum(1/ni)/seq^2) where s2D is the variance of the subject-by-formulation interaction, ni are the number of subjects in the sequence groups, seq is the number of sequences. s2D can be obtained from the G-matrix according to s2D = g11+g22-2*g12 (see for more details this post). Since the model seems over-specified try to use a simple model, f.i. neglect s2D which in turn results in a CS variance-covariance structure for the random part. Sometimes this helps. See also this thread for another even simpler model specification. BTW: @Helmut, asking the FDA seems a very good idea! — Regards, Detlew |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2013-05-02 16:41 (4370 d 05:23 ago) @ d_labes Posting: # 10524 Views: 24,925 |
|
Hi Detlew & John, ❝ […] try to use a simple model, f.i. neglect s2D which in turn results in a CS variance-covariance structure for the random part. Sometimes this helps. Nice – no warnings in PHX any more (only two iterations with the default settings). log AUCt
What do you SASians get? — Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
d_labes ★★★ Berlin, Germany, 2013-05-02 18:26 (4370 d 03:37 ago) @ Helmut Posting: # 10529 Views: 25,222 |
|
Dear Helmut, ❝ What do you SASians get? Aye, aye Sir, here I am ![]() log AUCt 90% CI log AUCinf 90% CI Please note the 'Variance' parameter in case of AUCinf. CS Covariance matrix parameterized in Proc MIXED as: ( CS+var CS See this post to notice that we really need 'Variance'=0 in our model (Type CS is only an approximation to that end, hoping the 'Variance' parameter is fitted with a value near zero). So we eventually have the optimizer to tell that for AUCt. Couldn't figure out in a hurry at moment how to do that. — Regards, Detlew |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2013-05-03 18:07 (4369 d 03:56 ago) @ d_labes Posting: # 10535 Views: 24,912 |
|
Dear Detlew! ❝ Please note the 'Variance' parameter in case of AUCinf. … and the negative one obtained in PHX. Seems that SAS’ RLME-engine forces negative values to zero. ❝ See this post to notice that we really need 'Variance'=0 in our model (Type CS is only an approximation to that end, hoping the 'Variance' parameter is fitted with a value near zero). Ooh – that one. ![]() ❝ So we eventually have the optimizer to tell that for AUCt. I’m not very optimistic whether this is possible in PHX at all; I will ask Pharsight. In PHX for linear mixed effects models the initial estimates are derived by the method of moments: log AUCt
Alternatively one can state initial variances. If I set csDiag_11 (PHX’ terminology) to zero (whilst keeping the others), the optimizer iterates happily around (four iterations instead of two) – only to end up with the same final estimates…— Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |