Skip to content

LINEAR MIXED EFFECT

9 messages · ANARPCG, milton ruser, David Atkins +2 more

#
CAN ANYONE PLEASE HELP ME WITH THIS
i HAVE TO DO A MIXED EFFECT LINEAR MODEL WITH MY DATA DUE TO THE FACT THAT I
have pseudoreplication!
Although after reading and trying it for several times can get around due to
"Error in na.fail.default(list(date = c(1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L,  :
missing values in object" 
I uploaded my data file
Thank you so much 
Kind regards 
AG
http://old.nabble.com/file/p26300394/rawoctobercalciumexperiment2.txt
rawoctobercalciumexperiment2.txt
#
Milton's point is dead-on, and I would highly encourage you to give the
posting guide a look.

That said... you might try "na.action = na.omit" in your call to...
actually, we don't know what function you are using (see first point). 
Regardless, sounds like you have missing data and na.action is set to
na.fail (ie, "fail" if any missing data).

cheers, Dave
milton ruser wrote:

  
    
#
Milton's point is dead-on, and I would highly encourage you to give the
posting guide a look.

That said... you might try "na.action = na.omit" in your call to...
actually, we don't know what function you are using (see first point). 
Regardless, sounds like you have missing data and na.action is set to
na.fail (ie, "fail" if any missing data).

cheers, Dave
milton ruser wrote:
http://old.nabble.com/file/p26315302/rawoctobercalciumexperiment2.txt
rawoctobercalciumexperiment2.txt
#
On Thu, Nov 12, 2009 at 10:14 AM, milton ruser <milton.ruser at gmail.com> wrote:
and include the random specification in the call to lme, not as a
separate assignment.
#
Douglas Bates-2 wrote:
:handshake:it did work finally thk for the help
it went like this
data<-read.table("H:\\5.11.09\\rawoctobercalciumexperiment2.txt",header=T)
names(data)
data<-na.omit(data)
library(nlme)
model5<-lme(lipwidth~date*diet,random=~1|date|diet,data=data)
summary(model5)
plot.lme(model5)
#
On Fri, 13 Nov 2009, milton ruser wrote:

            
No. It won't.  Except in some fairly unusual circumstances, R can distinguish functions from other objects and find the one it needs.

The point is that code will usually be easier to read if you have different names for different things.

      -thomas


Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle