First post here.
I'm pretty much a newbie both in statistics and using R, but nevertheless trying to fit a linear mixed model with the package nlme. My question is about transformations/variance functions. Pretty basic stuff I suppose, but I cannot find any good sources clearly explaining the concept. Also I recognize this question might as well be in SO, but I also need help with the statistical side of things.
My model thus far is this:
model=lme(fixed=A~B, random = ~1|C)
So, simply 1 fixed and 1 random.
During model validation, my pooled residuals vs. fitted values -graph and Q-Q -plots showed heterogeneity and non-normality.
The way I understand it, my choices now are either a transformation or a variance function for lme with the weights-argument (or am I missing some other ways of coping with the problem?). But simply using a variance function would only, hopefully, correct the heterogeneity, and it would not help normality, am I correct?. But using a transformation would also have its downsides. Which should I employ as a default, and why, or should I employ both if one doesn't work?
And most importantly, could someone please explain the basic idea behind the variance functions in complete layman's terms, and how I should go about implementing them? Practical examples with R-code would also be much appreciated!
And of course any referred literature would be of great help here, for a newbie.
Oh and thanks so much for this awesome forum by the way, I've learned a ton reading this stuff!
EDIT: After writing this I found an excellent reference explaining the various variance functions and how to use them in R (with practical examples) in Zuur et al. "Mixed Effects Models and Extensions in Ecology with R" pp. 72-86. I highly recommend reading this as a first source for anyone new to the consept. It's easy reading and after reading it you will understand all the basics.