Skip to content

corelated errors

2 messages · Iasonas Lamprianou, Andrew Robinson

#
Dear friends, may we use lmer to estimate models where residuals can be correlated (no conditional independence
          assumption)

thanks

 
Dr. Iasonas Lamprianou
Department of Education
The University of Manchester
Oxford Road, Manchester M13 9PL, UK
Tel. 0044 161 275 3485
iasonas.lamprianou at manchester.ac.uk


----- Original Message ----
From: "r-sig-mixed-models-request at r-project.org" <r-sig-mixed-models-request at r-project.org>
To: r-sig-mixed-models at r-project.org
Sent: Saturday, 10 November, 2007 1:00:01 PM
Subject: R-sig-mixed-models Digest, Vol 11, Issue 7

Send R-sig-mixed-models mailing list submissions to
    r-sig-mixed-models at r-project.org

To subscribe or unsubscribe via the World Wide Web, visit
    https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
or, via email, send a message with subject or body 'help' to
    r-sig-mixed-models-request at r-project.org

You can reach the person managing the list at
    r-sig-mixed-models-owner at r-project.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of R-sig-mixed-models digest..."


Today's Topics:

  1. segmented regression mixed model? (Irene Mantzouni)
  2. Re: Nested Mixed Models in lme4 (Marco Chiarandini)
  3. lme4 is now on R-forge (Douglas Bates)


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

Message: 1
Date: Fri, 9 Nov 2007 16:59:27 +0100
From: "Irene Mantzouni" <ima at difres.dk>
Subject: [R-sig-ME] segmented regression mixed model?
To: <r-sig-mixed-models at r-project.org>
Message-ID:
    <68E7981938EAF54F987AD3848A0A6416E5837E at ka-mail01.dfu.local>
Content-Type: text/plain;    charset="ISO-8859-7"

Hi all!

Is it possible to use a segmented regression model as the functional form of a linear (or maybe non-linear?) mixed model?

Cheers,
Irene



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

Message: 2
Date: Fri, 09 Nov 2007 17:41:34 +0100
From: Marco Chiarandini <marco at imada.sdu.dk>
Subject: Re: [R-sig-ME] Nested Mixed Models in lme4
To: Douglas Bates <bates at stat.wisc.edu>
Cc: r-sig-mixed-models at r-project.org
Message-ID: <47348DBE.1060407 at imada.sdu.dk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Dear Prof. Bates,
yes, thank you a lot! All your corrections are 
appropriate! inst should have been type and all 
variables should have been categorical. My mistake.
Also: as you correctly pointed out, the data are 
from a computer experiment and perfectly balanced, 
and by group factors I meant blocking factors.

Your very clear explanation solved my concerns 
about the nesting! Thanks!

I've also redone the comparison with SAS and now 
results correspond.
The reason was mainly that I needed a quite 
different formula:

lmer(err~initial*neighborhood + initial*k + 
initial*type + initial*size + initial*dens + 
neighborhood*k + neighborhood*type + 
neighborhood*size + neighborhood*dens + k*type + 
k*size + k*dens + type*size + type*dens + 
size*dens + initial*neighborhood*k + 
(1|inst),data=Case3)

True also that we were using lsmeans in SAS that 
you discourage.

To me it would remain only to understand how I 
could obtain the results in a cell means format 
like those in SAS. But this seems to be a problem 
also in lm and hence I must probably study better 
how things work to find the way. Trying something 
of the kind:

fmm1 <- 
lmer(err~-1+ordered(size)+dens+type+(k+initial+neighborhood)^3+(1|inst),data=Case3)

does not seem to help much.

I left all the analysis I did, code + results, 
(SAS and R) at:

http://www.imada.sdu.dk/~marco/Mixed/


Thank you a lot very much for the help!

Best regards,

Marco
#
Hi Iasonas,

it depends on the correlation structure.  If you can produce the
structure using crossed or nested random effects, then, yes.  If you
are referring to the kinds of correlations that are produced by the
correlation argument in lme(), then, no, not yet.

Cheers

Andrew
On Mon, Nov 26, 2007 at 09:50:22AM -0800, Iasonas Lamprianou wrote: