Cadmium [🇷 for BE/BA]
Ahoy dlabes,
always a pleasure reading posts from you; I understand so little...
This thing about 'If it could be done exact
' just made me wonder. Of course power calculations with computers is not an exact business but I will in the following not be discussing the 17th decimal.
If I get you right you are looking for the answer to this question:
If we have a power of P at T/R=soandso and CV being thisorthat, then what should the accetance range be if the CV is not thisorthat but blahblah?
In principle, the EMA guideline provides the answer to that Question as it allows a construct of a curve of acceptance range versus CV. But trying to decipher your encrypted babblings, you're saying this is an approximation given that power should be the constant.
Allow me to return to the famous german desert and ingestion of clothing, but this time garnished with some heavy metal (I use the simple example of a 2,2,2-design although this is not the relevant one for scaling but it can be adapted pretty easily):
Pwr222(30,0.05, 0.8, 1.25, 0.95, 0.3) is 0.6850399.
Let's check:
OK, what acceptance range matches a 2,2,2-design with T/R being 0.95, N=30 and power being 0.6850399?
I_Eat_Cadmium (0.6850399, 0.95, 0.3, 0.05, 30) gives the answer.
And if the CV is not 0.3 but 0.4 then which acc range can apply?
I_Eat_Cadmium (0.6850399, 0.95, 0.4, 0.05, 30)
Better approximation possible by this approach, no?
EM.
always a pleasure reading posts from you; I understand so little...
❝ Theoretically the power of scaled ABE evaluation (if it could be done exact ) and therefore the sample size is independent of the variability.
This thing about 'If it could be done exact

If I get you right you are looking for the answer to this question:
If we have a power of P at T/R=soandso and CV being thisorthat, then what should the accetance range be if the CV is not thisorthat but blahblah?
In principle, the EMA guideline provides the answer to that Question as it allows a construct of a curve of acceptance range versus CV. But trying to decipher your encrypted babblings, you're saying this is an approximation given that power should be the constant.
Allow me to return to the famous german desert and ingestion of clothing, but this time garnished with some heavy metal (I use the simple example of a 2,2,2-design although this is not the relevant one for scaling but it can be adapted pretty easily):
EatMyShorts <- function (x, V, T, W)
{
l1 = pnorm((T*x/sqrt(V)) - W);
l2 = (V-1.0)*log(x) -lgamma(0.5*V) - (0.5*(V-2.0))* log (2.0);
l3 = exp(l2);
l4 =dnorm(x);
l1*l3*l4;
}
Apfelstrudel<-function(t, df, ta, tb, ncp, ACCURACY)
{
L1 = sqrt(2*pi);
P=0;
step = (tb-ta)/ACCURACY;
foo=ta;
for (i in 1:ACCURACY)
{
y1 = EatMyShorts(foo, df, t, ncp);
y2 = EatMyShorts(foo+0.5*step, df,t, ncp);
y3 = EatMyShorts(foo+step, df,t, ncp);
P=P+step*(y1+y2*4+y3)/6; ## homer simpson's meffud!
foo=foo+step;
}
L1*P
}
Pwr222 <- function (N, alpha, AccLimitLo, AccLimitHi, TRRatio, CV)
{
df = N-2;
tc = qt( 1-alpha, df);
k = sqrt(2/N);
d1 = (log(TRRatio)-log(AccLimitLo))/(k * sqrt(log(1+CV*CV)));
d2 = (log(TRRatio)-log(AccLimitHi))/(k * sqrt(log(1+CV*CV)));
R = sqrt(df) * (d1-d2) / (2*tc);
P2 = Apfelstrudel(-tc, df, 0,R,d2, 300);
P1 = Apfelstrudel(tc, df, 0,R,d1, 300);
P2-P1
}
I_Eat_Cadmium <- function(P, TR, CV, alpha, N)
{
AccLimLo = 0.9999;
delta= 0.05;
for (i in 1:20) ##change 20 here for fiddling with precision and time
{
AccLimHi=1/AccLimLo;
P0=P
P1=Pwr222(N, alpha, AccLimLo, AccLimHi, TR, CV);
while (P1<P0)
{
AccLimLo1=AccLimLo-delta;
AccLimHi1=1/AccLimLo1;
P1=Pwr222(N, alpha, AccLimLo1, AccLimHi1, TR, CV)
AccLimLo=AccLimLo-delta
}
if (P1>=P0) AccLimLo=AccLimLo1+delta else AccLimLo=AccLimLo1;
delta=delta*0.4; ##change factor here for fiddling with precision and time
}
cat("Acc Lim Lo: ", AccLimLo, "\n");
cat("Acc Lim Hi: ", 1/AccLimLo, "\n");
}
Pwr222(30,0.05, 0.8, 1.25, 0.95, 0.3) is 0.6850399.
Let's check:
OK, what acceptance range matches a 2,2,2-design with T/R being 0.95, N=30 and power being 0.6850399?
I_Eat_Cadmium (0.6850399, 0.95, 0.3, 0.05, 30) gives the answer.
And if the CV is not 0.3 but 0.4 then which acc range can apply?
I_Eat_Cadmium (0.6850399, 0.95, 0.4, 0.05, 30)
Better approximation possible by this approach, no?
EM.
Complete thread:
- Feature suggestion for bear and PowerTOST ElMaestro 2011-01-16 19:13 [🇷 for BE/BA]
- Sample size for widened scaled ABE limits d_labes 2011-01-17 13:19
- 0.760 or... Helmut 2011-01-17 14:38
- ... full precision is the question d_labes 2011-01-17 16:37
- ... full precision is the question Helmut 2011-01-17 18:06
- OT: Number of horns on a unicorn d_labes 2011-01-18 08:32
- Goooogle Helmut 2011-01-18 11:44
- OT: Number of horns on a unicorn d_labes 2011-01-18 08:32
- ... full precision is the question Helmut 2011-01-17 18:06
- ... full precision is the question d_labes 2011-01-17 16:37
- CadmiumElMaestro 2011-01-19 17:50
- Never eaten Cadmium deliberately d_labes 2011-01-20 15:00
- Never eaten Cadmium deliberately Helmut 2011-01-20 15:25
- Call of duty for simulants d_labes 2011-01-20 16:15
- Counterinuitive Helmut 2011-01-21 04:13
- Counterintuitive d_labes 2011-01-21 08:36
- Counterintuitive Helmut 2011-01-21 12:53
- Counterinuitive, but ... d_labes 2011-01-21 12:12
- Counterinuitive, but ... Helmut 2011-01-21 13:01
- Wow, Wow ... d_labes 2011-01-21 14:43
- Counterinuitive, but ... Helmut 2011-01-21 13:01
- Counterintuitive d_labes 2011-01-21 08:36
- Counterinuitive Helmut 2011-01-21 04:13
- Never eaten Cadmium deliberately ElMaestro 2011-01-21 12:59
- Simulants of the world, unite! Helmut 2011-01-21 14:05
- Simulants of the world, unite! ElMaestro 2011-01-21 14:52
- Hyslop, Howe, scaled ABE and that all d_labes 2011-01-21 15:28
- Hyslop, Howe, scaled ABE and that all ElMaestro 2011-01-21 15:45
- scABE and missings d_labes 2011-01-21 16:19
- Hyslop, Howe, scaled ABE and that all ElMaestro 2011-01-21 15:45
- Intuition Helmut 2011-01-21 18:41
- Hyslop, Howe, scaled ABE and that all d_labes 2011-01-21 15:28
- Simulants of the world, unite! ElMaestro 2011-01-21 14:52
- Simulants of the world, unite! Helmut 2011-01-21 14:05
- Call of duty for simulants d_labes 2011-01-20 16:15
- Never eaten Cadmium deliberately ElMaestro 2011-01-20 15:34
- Use of Cadmium d_labes 2011-01-20 16:06
- Use of Cadmium ElMaestro 2011-01-20 16:52
- Use of Cadmium ElMaestro 2011-01-20 17:53
- Use of Cadmium d_labes 2011-01-20 16:06
- Never eaten Cadmium deliberately Helmut 2011-01-20 15:25
- Never eaten Cadmium deliberately d_labes 2011-01-20 15:00
- 0.760 or... Helmut 2011-01-17 14:38
- Sample size for widened scaled ABE limits d_labes 2011-01-17 13:19