2
$\begingroup$

I’ve been doing some statistical analyses in R on some data. It’s for use in a manuscript I’m hoping to get published in a biological journal. Unfortunately, the tests I ended up having to run are kind of at the limit of my understanding, so I was hoping that I could run through what I did with my data, and could get opinions on whether this was a valid approach or not. So let’s start:

I needed to test the effect of a combination of categorical and continuous independent variables on a continuous dependent variable, with a random factor included to control for pseudo replication. My untransformed data for the responding variable is extremely right-skewed and heteroscedastic (shows increasing variance).

Now, originally, I was going to run a GLMM (generalized linear mixed-model), but no matter what families, links, and transformations I tried, I couldn’t meet the assumption of homoscedasticity (variance always increased)… this was the closest I got: http://i.imgur.com/qZ8kB7Y.png?1

It was suggested to me that I might have more luck with a GEE (generalized estimation equation) instead, so I went about doing that. First, I fit the data to a GLM (generalized linear model) by transforming the responding variable as such: I took the natural log of the responding variable, added a constant to bring the lowest value up to 1, and used a natural log transformation on the data once again (i.e. an ln-ln transformation). I used a gaussian family with an identity link (the best combination was actually a quasipoisson family with a log link, but there is no quasipoisson family usable for GEE tests in R from what I understand...so I stayed with the gaussian/identity). This rendered the data homoscedastic and normal, as shown by the GLM plot output: http://i.imgur.com/P3KWAfk.png

After I fit the data to the GLM, I tested the ln-ln transformed data in a GEE, using, of course, the same family and link function as in the GLM. I used an exchangeable structure as it provided the lowest QIC, QICu and CIC, and the highest quasi likelihood.

Now, other than wondering if this process seems valid, I have two questions:

  1. Someone I’ve been talking to said that although they thought my approach was statistically meaningful, it wasn’t scientifically meaningful. They said that transforming my responding variable makes interpretation difficult and should be avoided. They also said it would be much more meaningful to fit an untransformed quasipoisson type of model that violates assumptions than to do the transformations I did to meet assumptions. Is this true? Would a journal find that acceptable?

  2. Since my responding variable is continuous, I can’t use the poisson family despite it being a good fit for my data…. And there doesn’t seem to be any way to use a quasipoisson family in the GEE, though I can use link=“log”… is it even possible to fit it to a quasipoisson type of model?

Any input would be extremely valuable! Thanks!

$\endgroup$
5
  • $\begingroup$ don't suppose you can explain what the data is? $\endgroup$
    – seanv507
    Sep 23, 2014 at 22:45
  • $\begingroup$ The response variable is the length of a bout of scratching behaviour, while the predictor variables are factors like age and sex, as well as ecological variables (e.g. is the animal in a high or low risk area for predation?), and social variables (e.g. group size). $\endgroup$
    – Reese
    Sep 24, 2014 at 5:32
  • $\begingroup$ Did you try a negative binomial model? By any chance does your data seem to have an excessive number of zeros? $\endgroup$ Feb 1, 2015 at 7:35
  • $\begingroup$ May be you need structural equation modeling or path analysis. $\endgroup$
    – rnso
    Apr 10, 2015 at 1:17
  • $\begingroup$ Did you try a linear mixed model (nlme package in R)? With that package you can explore different variance weights, which can help with heteroscedasticity. This is nice because it doesn't require you to transform the data, and is very flexible. Otherwise, I think the sandwich estimate of variance in the GEE does not require you to transform in the first place; see a previous question I had regarding this: stats.stackexchange.com/questions/77058/…. $\endgroup$
    – Moose
    Jul 17, 2015 at 14:01

1 Answer 1

1
$\begingroup$

Maybe you should put the problem description at the beginning of your question, so everyone sees it.

I would suggest you use a mathematical model of scratching, and then do statistics on the model parameters. This would both be more satisfying from the biologist's point of view, and remove the statistical issues of heteroscedasticity.

As an example, which i am sure is wrong, you could have markov chain model...ie you could have probability of stopping scratching, given have been scratching for minute, and then this model gives you expected stopping time, variance etc. ..and you would try to regress the probability of scratching on your biological variables..I would have thought a mathematical model of scratching already exists for which you can try to fit parameters.

$\endgroup$

Your Answer

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

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