Skip to content
Prev 9624 / 20628 Next

interpreting random intercepts when no fixed intercept present

Hi Ben

Thanks for your response. 

In these kind of models I have normally treated age as numeric, and log transformed both growth and age to 'linearise' the relationship. However, this doesn't always work, especially when the growth~age relationship displays an initial steep decline followed by a period of relatively constant growth (think indeterminate growth in fish that nonetheless markedly declines at maturity). Obviously a smoothing spline for age could fit this kind of data better but I'm developing some quite complex models that don't seem to be fit easily/ possible with GAMM. A quadratic or even cubic age term doesn't always fit the data well. 

I decided to have a look at treating age as a factor as it allows for greater flexibility in the growth~age relationship (each age is free to respond in its own way) and the data set I have can cope with estimating quite a few additional parameters (1 linear parameter vs. 10 fixed age parameters). I believe having no fixed intercept in the model allows for direct comparison of parameters amongst models developed for different species/ locations. I'll have a look into how model.matrix() parameterizes models with ordered fixed effects. Just quickly, would you expect there to be any difference in how random intercepts are interpreted in a model with no fixed intercept and un-ordered fixed effects?

Thank you

John
Hmm.  It would generally seem to make more sense to treat age as numeric, since I would expect some sort of smooth, systematic
(linear/quadratic/spline) relationship between growth and age.
(Although I guess using an ordered factor does in some way allow you to separate linear, quadratic, higher-order contributions to the growth-age relationship)
Hmmm.  I think in order to answer this question I'd have to figure out what model.matrix() is doing when we use [ordered factor]+0 in a formula.  I thought I knew but now I don't think I do ...
(Intercept)         f.L         f.Q         f.C         f^4 
      0.525      -0.064       0.154       0.144      -0.116
f1    f2    f3    f4    f5 
0.589 0.651 0.360 0.428 0.599
(Intercept)          f2          f3          f4          f5 
     0.5885      0.0625     -0.2286     -0.1602      0.0101 

 (It would probably be better to use an example with a clear linear and quadratic term and nothing else, for clarity)
I think the answer to this is going to have to involve more searching into how model.matrix() parameterizes these models.
Basically, once you know how the fixed effects are parameterized, you can interpret what it means to add a zero-mean random-effects
offset to it ...
------------------------------

Message: 2
Date: Wed, 13 Feb 2013 09:00:49 +0000
From: Andrea Cantieni <andrea.cantieni at phsz.ch>
To: "R-sig-mixed-models at r-project.org"
	<R-sig-mixed-models at r-project.org>
Subject: [R-sig-ME] goodness-of-fit tests on mcmc objects
Message-ID: <F4A166428041EA44893A6FF6AAC1AA36518A56 at ex01.phsz.loc>
Content-Type: text/plain

Dear all,

I am fitting an hierarchical model with MCMChregress() in MCMCpack package.

I want to do some goodness-of-fit tests, e.g. posterior predictive checks, that are suitable for hierarchical models.

Has anyone suggestions how I can do that?

Thanks!

Best,
Andrea
........................................................................

Andrea Cantieni
Research Assistant

University of Teacher Education Central Switzerland Campus Schwyz Institute for Media and Schools Zaystrasse 42
6410 Goldau
Switzerland

Tel. +41 41 859 05 72
andrea.cantieni at phsz.ch<mailto:andrea.cantieni at phsz.ch>
www.phsz.ch<http://www.phsz.ch>

........................................................................
Please take note of our new email address (@phsz.ch<http://phsz.ch>).
........................................................................








------------------------------

_______________________________________________
R-sig-mixed-models mailing list
R-sig-mixed-models at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models


End of R-sig-mixed-models Digest, Vol 74, Issue 22
Message-ID: <D7383CD4D59FEA4DA879EF5096A5A8CB180CA71A9B@exvic-mbx03.nexus.csiro.au>
In-Reply-To: <mailman.5.1360753201.31801.r-sig-mixed-models@r-project.org>