[R] Plotting a ranef object in NLME

From: Greg Distiller <gregd_at_stats.uct.ac.za>
Date: Wed 02 Aug 2006 - 23:55:53 EST

I am following the model building strategy that is outlined in the Pinheiro and Bates book wrt including covariates but am having a problem with the plot. Basically I am using 4 covariates (1 of them is continuous) and 3 of them are fine but the 4th one is being shown as a scatterplot despite the fact that it is a factor. I have explicitly declared this to be a factor (pcat<-as.factor(pcat)) and have also checked by using the "is.factor" and the "levels" command that it is a factor. Yet despite this the plot command is not recognising it as a factor.

Any ideas?

Many thanks


BTW I have 1st created an object that holds the random effects estimated by my model (D1C2.ran <- ranef(mod11.103nlme,augFrame=T)) and then it is this object that I try plot (plot(D1C2.ran,form= C ~site+mutcat2+pcat+pdens0).

        [[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu Aug 03 00:00:53 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 03 Aug 2006 - 02:18:06 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.