Obsidian | Level 7

## Sample size estimation from proc glimmix output in multiple comparison procedure

I have a data set with 84 variables, and a treatment variable with 4 states (a, b, c and d). For variable 1, I want to know if there are mean differences between the 4 treatments. I then test variable 2, and so forth. I use proc GLIMMIX, and an lsmeans statement with adjust=tukey. For the variables that show no significant differences, is there a way to get SAS to calculate the sample size that would be needed to get a significant outcome?  I would be happy if I could get the calculation for all of the variables and then process the output by hand to get only the non-significant variables.

There will be a sample size needed to get a significant difference between a and b, and this will be different than the sample size necessary to get b different than d. There are six possible values, but I am mostly just interested in the smallest value that will give at least one significant difference.

The SAS code looks like this, where the independent variable in NumPrbs, and trt is short for treatment :

``````Proc glimmix plots=residualpanel;

class trt;

model NumPrbs=trt;

title 'ANOVA & LSD of NumPrbs';``````

Here is data from NumPrbs. Values are not integer because the data were transformed:

 a 5.2915 a 4.47214 a 6.78233 a 5.47723 a 3.31663 a 3.74166 a 4.79583 a 2.64575 a 5.38516 a 4.69042 a 5.91608 a 3.4641 a 2.23607 a 4.24264 a 3.60555 a 2 a 3.31663 a 3.4641 a 4.47214 a 3 a 3.16228 a 4.24264 b 6.55744 b 6.16441 b 7.14143 b 5.83095 b 1.73205 b 2.23607 b 7.07107 b 4.89898 b 2.23607 b 4.79583 b 2.44949 b 4 b 5.47723 b 5.2915 b 5.2915 b 4.89898 b 4.3589 b 6.32456 b 4.3589 b 5.65685 b 3.60555 b 3.31663 b 6.32456 c 8.66025 c 3.31663 c 4.58258 c 4.47214 c 5.09902 c 7 c 2.44949 c 4.89898 c 3 c 4.89898 c 1.73205 c 5.47723 c 2.82843 c 3.16228 c 7.28011 c 4.24264 c 6.55744 c 5.09902 c 4.24264 c 6.16441 c 2.64575 c 4.69042 c 4.79583 c 2.23607 d 5.38516 d 4.3589 d 5.47723 d 2.23607 d 5.56776 d 3.16228 d 3.74166 d 2.23607 d 4.58258 d 8.94427 d 6.78233 d 5.38516 d 7.48332 d 5.47723 d 8.83176 d 4.12311 d 6.16441 d 6.78233 d 3.16228 d 6