[R] Checking for linearity by ploting residuals against predicted values (lme)?

2008-02-08 Thread Falco tinnunculus
Hello, Is there a easy way to get p-values when testing linearity of a model by ploting residuals against predicted values? Regards Kes, [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/li

[R] How to calculate normality of the residuals from a test in R?

2008-02-07 Thread Falco tinnunculus
Hi, How do I calculate normality distribution of the residuals from a test in R? I have tried plot(mod1), and I get a nice plot, but no p-value... is there some other ways to calculate this? Regards Kes, [[alternative HTML version deleted]] _

[R] Basic questions about lme()

2008-02-05 Thread Falco tinnunculus
Hi, I have some basic questions about lme(), I have run following: >Mod1<-lme >summary (Mod1) >anova (Mod1) 1. What is the differece between the summary result and the anova result? 2. Is it sufficient to only report the anova result in an article? 3. How is the most proper way to desc

[R] How to set working directory to a fixed map?

2008-02-05 Thread Falco tinnunculus
Dear all, How do I set the working directory to a fixed map? It's time consuming to change working directory every time I run R. Regards Kes, [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailma

[R] How to make reference to R in the method section in a scientific article?

2008-02-04 Thread Falco tinnunculus
Dear all, How do I make reference to R in the method section in a scientific article? Should I state the web aderess? And, is this the proper way to report the lme test? "The relationships were assumed to be linear. The response, handling time and the explanatory variable, prey mass, were log t

[R] Is it possible with two random effects in lme()?

2008-02-01 Thread Falco tinnunculus
Dear all, Is it possible with two random effects in lme()? lmefit1<- lme(Handling ~ Mass + factor(Prey)+ Mass*factor(Prey), random = ~ 1 |Place+Age) Here I use Place as random effect, but I also want to add Age as a random effect. Since there could be an effect of Age (continous variable), but

[R] How to run interaction between to categoric variables in lme()?

2008-01-30 Thread Falco tinnunculus
Hello, How do I run interaction between to categoric variables in lme()? I tried this: > lmefit1<- lme(Handling ~Mass+factor(Prey)+factor (Decap)+ factor(Prey)*factor(Decap), random = ~ 1 |Place, data=nestling1) Error in MEEM(object, conLin, control$niterEM) : Singularity in backsolve at level