Ben
★    

2011-09-02 15:43
(4848 d 08:39 ago)

Posting: # 7327
Views: 14,648
 

 Inter and Total Variability [Power / Sample Size]

Dear all,

I looked at the presentation slides about sample size calculations from HS, see here. There's a formula for the inter CV (slide #8) and I do not quite understand why the exponent from the exponential is the difference of MSEB and MSEW divided by 2 (and not just MSEB). Would be great if someone could give me some more details on that.
Also I read that one only gets the total variance out from a parallel study. The reason for that is what? Is it just the fact that the intra subject variability always exists, but cannot be measured by this kind of design?

Thank you in advance for clarification.

Best regards,
Benjamin


Edit: Moved to a category which fits the topic better, IMHO. [Helmut]
Helmut
★★★
avatar
Homepage
Vienna, Austria,
2011-09-02 16:21
(4848 d 08:01 ago)

@ Ben
Posting: # 7328
Views: 13,018
 

 Inter and Total Variability

Dear Benjamin!

❝ […] Would be great if someone could give me some more details on that.


For references see this post and Hauschke et al.1,2

The between-subject coefficient of variation \(CV_b\) is calculated from the between-subject variance \(\sigma_b^2\):
\begin{equation}
CV_b=\sqrt{e^{\sigma_b^2-1}}
\end{equation}

Since we don’t know the between-subject variance of the population, \(CV_b\) has to be estimated from the model’s \(MSE_b\) and \(MSE_w\):
\begin{equation}
CV_b\approx\sqrt{e^{(MSE_b-MSE_w)/2}-1}
\end{equation}

❝ Also I read that one only gets the total variance out from a parallel study. The reason for that is what? Is it just the fact that the intra subject variability always exists, but cannot be measured by this kind of design?


Exactly! The fact that you observed just one occasion, doesn’t mean that variability between occasions (in the same subjects – therefore ‘within’ or ‘intra’) does not exist.
  1. Hauschke D, Steinijans VW, Pigeot I. Bioequivalence Studies in Drug Development: Methods and Applications. New York: Wiley; 2007. p 88.
  2. A note for users of Phoenix/WinNonlin: The output of a 2×2 cross-over study erroneously gives \(CV_b\) based on (1)
    Edit: Removed from the output in Phoenix 7.0; now it is up to you to apply the correct formula in a ‘custom transformation’ from the variance(s). BTW, if the EMA’s ‘all fixed effects’ model is used, only the within-subject variance is available.

PS: THX for bringing the problems with the contact form and the registration to my attention!

Dif-tor heh smusma 🖖🏼 Довге життя Україна! [image]
Helmut Schütz
[image]

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
Ben
★    

2011-09-03 13:28
(4847 d 10:54 ago)

@ Helmut
Posting: # 7333
Views: 12,881
 

 Inter and Total Variability

Thank you very much for this quick reply. I will check out all the references (haven't done all of them so far).

Best regards,
Benjamin
Ben
★    

2011-09-08 21:22
(4842 d 03:00 ago)

@ Ben
Posting: # 7342
Views: 12,760
 

 Inter and Total Variability

Dear all,

I will just reply to this post instead of opening a new one (since one issue I want to talk about is again about variabilities).
  1. I read in other posts (here) that one cannot get inter (or intra) variability from the total variability and one should avoid rule of thumbs like CV_intra = 60% of CV_total. I agree (I saw the data from Lansoprazole) - at least when talking about CVs. But what about just taking intra variance to be half of the total variance (when only total variance is given)? This approach seems to be a conservative estimate. Usually intra variance is less than or equal to inter variance. It also makes sense coming from the correlation between two responses on the same subject, which is equal to 1/2 if and only if the within variance equals the between variance. Based on this one can calculate CVs. Or not? (the Lansoprazole example should also fulfill this)

  2. I'm trying to get the degrees of freedom for the following design: one single group, fixed sequence, uncontrolled with respect to time effects (intra-subject design), say n subjects receive k days treatment A, then another k days they receive treatment A and B. More mathematically
    log(response) = overall mean + subject + trt effect + error.
Now, consider the following approach. We have 2n values, we lose n-1 df because of the subjects, 2-1 df because of treatment effects and the "usual" -1 because of the overall mean, hence the degrees of freedom is n-1.
I'm wondering whether this is correct or not. Let's say we use the same approach for a 2x2 cross-over design, that is,
log(response) = overall mean + sequence + subject + period + trt effect + error,

then we end up with (assume n1 = n2 = n/2) 2n - (n-1) - (2-1) - (2-1) - (2-1) - 1 = n-3.
But we should have n-2 (don't we?) and hence the approach may not be correct at all...?

Thank you in advance for your thoughts and help on that.

Best regards,
Benjamin
Helmut
★★★
avatar
Homepage
Vienna, Austria,
2011-09-11 13:55
(4839 d 10:27 ago)

@ Ben
Posting: # 7346
Views: 12,937
 

 Inter and Total Variability

Dear Benjamin,

answering only your first question (now) …

❝ […] But what about just taking intra variance to be half of the total variance (when only total variance is given)? This approach seems to be a conservative estimate.


Not always (see below).

❝ Usually intra variance is less than or equal to inter variance.


What it your drug/formulation is ‘unusual’? If you have only a parallel study you simply don’t know.

❝ It also makes sense coming from the correlation between two responses on the same subject, which is equal to 1/2 if and only if the within variance equals the between variance. Based on this one can calculate CVs. Or not? (the Lansoprazole example should also fulfill this)


OK, here are the complete data of the previous post (only the two extremes):*
Study           CVintra  CVinter  CVtotal intra/total   MSEw     MSEB     MSEt
Methylphenidate  7.00%  19.13%  20.41%    34.27%     0.004882 0.076746 0.039225
Lansoprazole    47.01%  25.14%  54.60%    86.09%     0.199667 0.322229 0.262708


If you base the sample size estimation in a X-over on \(\sigma_{intra}^2\approx\sigma_{total}^2/2\) you would end up with CVintra of 14.07% () for methyphenidate and 37.47% () for lansoprazole. In the former case you waste money – in the latter you blew the study.



Dif-tor heh smusma 🖖🏼 Довге життя Україна! [image]
Helmut Schütz
[image]

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
Ben
★    

2011-09-14 00:03
(4837 d 00:19 ago)

@ Helmut
Posting: # 7350
Views: 12,567
 

 Inter and Total Variability

Dear Helmut,

thank you for your post. So just for me to get this straight: MSEt is not the sum of MSEw and MSEB, it's MSEw + (MSEB - MSEW)/2. And σ²inter is estimated by (MSEB - MSEW)/2 and not MSEB (in the references you posted these values are plugged in for calculating the corresponding CV, so I guess these values themselves represent direct estimates for the variances). Then of course it makes sense. A conservative estimator for the intra variability would then be MSE_t.

Best regards
Helmut
★★★
avatar
Homepage
Vienna, Austria,
2011-09-14 02:43
(4836 d 21:39 ago)

@ Ben
Posting: # 7351
Views: 12,833
 

 Inter and Total Variability

Dear Benjamin,

THX for thinking it over again and forcing me to dig out old references. My output (given by a software I have written in the mid-1980s) didn’t contain MSEt (only SSEt and df). In this table I thoughtlessly used MSEt = SSEt/df…

❝ […] MSEt is not the sum of MSEw and MSEB, it's MSEw + (MSEB - MSEW)/2.


Which reduces to MSEt = (MSEB + MSEW)/2. q.e.d.
I should have paid more attention to my own slide. :angry:
Therefore:
Study           CVintra  CVinter  CVtotal   MSEw     MSEB     MSEt
Methylphenidate  7.00%  19.13%  20.41%   0.004882 0.076746 0.040814
Lansoprazole    47.01%  25.14%  54.60%   0.199667 0.322229 0.260948

The percentage CVtotal intra/total is nonsense (apples and oranges).

❝ And σ²inter is estimated by (MSEB - MSEW)/2 and not MSEB (in the references you posted these values are plugged in for calculating the corresponding CV, so I guess these values themselves represent direct estimates for the variances).


Right.

❝ Then of course it makes sense. A conservative estimator for the intra variability would then be MSE_t.


Also correct. But then we are relying on:
[image]

In the methylphenidate example conservatism will be very expensive.

Dif-tor heh smusma 🖖🏼 Довге життя Україна! [image]
Helmut Schütz
[image]

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
Ben
★    

2011-09-18 14:36
(4832 d 09:47 ago)

@ Helmut
Posting: # 7367
Views: 12,426
 

 Inter and Total Variability

Dear Helmut,

thanks for confirming and clarifying again.

❝ In the methylphenidate example conservatism will be very expensive.


I agree.

Any thoughts on the degrees of freedom problem?

Best regards
Ben
★    

2011-10-06 20:51
(4814 d 03:32 ago)

@ Helmut
Posting: # 7438
Views: 12,220
 

 Inter and Total Variability

Dear Helmut/all,

I'd like to pick up the topic on how to estimate σ²inter again.

❝ ❝ And σ²inter is estimated by (MSEB - MSEW)/2 and not MSEB (in the references you posted these values are plugged in for calculating the corresponding CV, so I guess these values themselves represent direct estimates for the variances).


❝ Right.


When using SAS's PROC MIXED then the variance of the subject effect and the variance of the error term will be printed in the table "Covariance Parameter Estimates". Does SAS internally calculate this estimate by (somehow) using the fact that (MSEB - MSEW)/2 ? I found this website which says that SAS calculates (MSEB - MSEW)/3. (Example 2; here we have balanced data). I'm confused. Which one is the "correct" estimate? Do I have to multiply the value from SAS by 3 and then divide by 2 to get the "right one"? Does this calculation depend on whether someone uses GLM or MIXED (but the formula (MSEB - MSEW)/2 seems to be an general one...)?
Thank you in advance!

Best,
Ben
d_labes
★★★

Berlin, Germany,
2011-10-07 15:33
(4813 d 08:49 ago)

@ Ben
Posting: # 7440
Views: 12,493
 

 Inter-subject variance sasophylistic (GLM vs. MIXED)

Dear Ben,

❝ When using SAS's PROC MIXED then the variance of the subject effect and the variance of the error term will be printed in the table "Covariance Parameter Estimates". Does SAS internally calculate this estimate by (somehow) using the fact that (MSEB - MSEW)/2 ?


No. The variance of the random subject effect is a direct parameter of the underlying model and is estimated within Proc MIXED by REML method - a non-linear optimisation method. No sum-of-squares decomposition / mean squares are used within that method. That's the reason why you don't get an ANOVA like table within that SAS procedure.

❝ I found this website which says that SAS calculates (MSEB - MSEW)/3. (Example 2; here we have balanced data).


This example you cite is a '3 period' study, measurements at 3 time points for each subject, therefore the formula differs from that one for the 2x2 crossover design.
Note that this formula is given for the calculation of the inter-subject variance within ANOVA (Proc GLM).

Regards,

Detlew
ElMaestro
★★★

Denmark,
2011-09-18 16:14
(4832 d 08:09 ago)

@ Ben
Posting: # 7368
Views: 12,532
 

 Inter and Total Variability

Hi Ben,

❝ 2. I'm trying to get the degrees of freedom for the following design: one single group, fixed sequence, uncontrolled with respect to time effects (intra-subject design), say n subjects receive k days treatment A, then another k days they receive treatment A and B. More mathematically

❝ log(response) = overall mean + subject + trt effect + error.


❝ Now, consider the following approach. We have 2n values, we lose n-1 df because of the subjects, 2-1 df because of treatment effects and the "usual" -1 because of the overall mean, hence the degrees of freedom is n-1.

❝ I'm wondering whether this is correct or not. Let's say we use the same approach for a 2x2 cross-over design, that is,

❝ log(response) = overall mean + sequence + subject + period + trt effect + error,


❝ then we end up with (assume n1 = n2 = n/2) 2n - (n-1) - (2-1) - (2-1) - (2-1) - 1 = n-3.

❝ But we should have n-2 (don't we?) and hence the approach may not be correct at all...?


I think....
In the 2,2,2-BE example you know the sequence if you know the subject's period and treatment coding of the model matrix (or vice versa). Thus you need to add one df in the equation above to get n-2.
For your model, assuming you code A and A+B as two individual factor levels, you might say if there's a tick for A then there's no tick for A+B and vice versa, so loss of 2-1 df here. Then df=n-1 looks right to me.

Pass or fail!
ElMaestro
Ben
★    

2011-09-19 21:43
(4831 d 02:39 ago)

@ ElMaestro
Posting: # 7371
Views: 12,363
 

 Inter and Total Variability

Thanks ElMaestro, that does sound reasonable!
UA Flag
Activity
 Admin contact
23,336 posts in 4,902 threads, 1,669 registered users;
41 visitors (0 registered, 41 guests [including 11 identified bots]).
Forum time: 23:23 CET (Europe/Vienna)

Every man is fully satisfied that there is such a thing as truth,
or he would not ask any question.    Charles Sanders Peirce

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5