Ben ★ 2011-09-02 15:43 (4848 d 08:39 ago) Posting: # 7327 Views: 14,648 |
|
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 ★★★ Vienna, Austria, 2011-09-02 16:21 (4848 d 08:01 ago) @ Ben Posting: # 7328 Views: 13,018 |
|
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.
PS: THX for bringing the problems with the contact form and the registration to my attention! — Dif-tor heh smusma 🖖🏼 Довге життя Україна! Helmut Schütz 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 |
|
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 |
|
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).
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 ★★★ Vienna, Austria, 2011-09-11 13:55 (4839 d 10:27 ago) @ Ben Posting: # 7346 Views: 12,937 |
|
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 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 🖖🏼 Довге життя Україна! Helmut Schütz 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 |
|
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 ★★★ Vienna, Austria, 2011-09-14 02:43 (4836 d 21:39 ago) @ Ben Posting: # 7351 Views: 12,833 |
|
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. Therefore:
Study CVintra CVinter CVtotal MSEw MSEB MSEt 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: In the methylphenidate example conservatism will be very expensive. — Dif-tor heh smusma 🖖🏼 Довге життя Україна! Helmut Schütz 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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
Thanks ElMaestro, that does sound reasonable! |