3
$\begingroup$

I'm using SPSS to run a GLM (general linear model) univariate with 1 fixed factor (Treatment) and one random factor (experimental replicate). There are 4 treatment groups. The measurement is number of cells per embryo. The Levene's Test for Equality of Error Variances is significant (P=0.000) and I can see from the Spread vs Level plot that there may be a pattern.

What are my options from here?

I have tried log transforming my data, and that increased the P value of the Levene's Test to P=0.02, but there still appears to be pattern in the Spread vs Level plot.

I know that I could use a Post hoc test that does not assume equal variances (Tamhane's T2 or Dunnett's T3), or I could use a Kruskal-Wallis H, but both of these are only possible with 1 factor, not two.

I would really appreciate any help with this!

spread vs level boxplot

$\endgroup$
19
  • $\begingroup$ When you say GLM are you talking about a generalized linear model (the thing most usually abbreviated to GLM in statistics) or a general linear model? (It would help to disambiguate the title in particular). What is the response / how is it measured? Can you describe the pattern you mention? $\endgroup$
    – Glen_b
    Commented Sep 23, 2015 at 23:10
  • $\begingroup$ Hi Glen, thanks for your reply. I'm using a General Linear Model. The response is number of cells. I've added a photo of the spread vs level plot and the boxplot to give you an idea. Perhaps the lack of homogeneity is not extreme enough to be concerned about? $\endgroup$
    – Rebecca
    Commented Sep 24, 2015 at 0:37
  • $\begingroup$ For count data you certainly expect heteroskedasticity (and skewness), and there are analyses that are specifically designed for several kinds of count response (specifically, the other kind of GLM). Can you talk more about how "number of cells" is obtained? Is it a count out of a total possible count (e.g. getting 45 out of a possible 195) or could the count potentially be very large (even though in practice it won't be very large) rather than each one having a known upper bound (not necessarily the same for each count). $\endgroup$
    – Glen_b
    Commented Sep 24, 2015 at 1:23
  • $\begingroup$ Thanks for all the additions by the way -- a much more informative question. With count data, a log-transform will "overcompensate" for the relationship between mean and variance, leaving you with the opposite pattern to the one you started with (the larger means will now be the ones with smaller spread). $\endgroup$
    – Glen_b
    Commented Sep 24, 2015 at 1:27
  • $\begingroup$ "Number of cells" is obtained by simply counting the number of cells present within each individual embryo. So the embryos in the treatment groups on the right of the boxplot have approximately double the number of cells than the embryos in the treatments on the left. So it is not a count out of a total possible count, and I guess there is no upper bound, although in practice the embryos will not grow to more than about 120 cells in this time frame in these conditions. $\endgroup$
    – Rebecca
    Commented Sep 24, 2015 at 1:43

1 Answer 1

2
$\begingroup$

For count data you certainly expect heteroskedasticity (and likely some skewness), and there are analyses that are specifically designed for several kinds of count response (specifically, the other kind of GLM).

With count data, a log-transform will "overcompensate" for the relationship between mean and variance, leaving you with the opposite pattern to the one you started with (the larger means will now be the ones with smaller spread).

A fairly typical analysis for an open-ended count would tend to involve a Poisson or negative binomial generalized linear model for the count, which should explain much of the observed heteroskedasticity.

If you must use a general linear model with a transformation the usual one for a Poisson count would be a square root, but it's not really as good as a model actually designed for counts. Given that some counts are as low as 10 you might even consider $\sqrt{y+\frac{3}{8}}$ or a Freeman-Tukey.

(See here for some discussion of the use of transformations with count data. There's a bit of information here that may also be helpful.)

There are lots of posts on site about the use of Poisson regression models, and other count-models, including negative binomial models.

I just realized I didn't talk about the random effect term. If you have a random effect in your model, that would suggest you might use generalized linear mixed models (GLMM). Again there are a number of posts on site about those. [I don't know whether SPSS does those but transformation may still give an adequate description of the data.]

$\endgroup$
1
  • $\begingroup$ +1 Glen, great answer. Is there a missing link after the Freeman Tukey equation. Also, I hope you saw the clarification to the misunderstanding here $\endgroup$ Commented Sep 24, 2015 at 13:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.