search for: log2game

Displaying 2 results from an estimated 2 matches for "log2game".

2006 Aug 17
1
NLME: Limitations of using identify to interact with scatterplots?
...regarding the use of identify to interact with points on a scatterplot. My question is essentially: can identify be used when one is plotting model objects to generate diagnostic plots? Specifically I am using NLME. For example, I am plotting the fitted values on the x axis vs a variable called log2game with the following code: plot(D2C29.nlme, log2game ~ fitted(.), abline=c(0,1)) and then I have tried to use identify as follows: identify(D2C29.nlme$fitted[,2],Data2$log2game,row.names(Data2)) (if I leave out the [,2] on the fitted attributes then I am told that x and y are not the same length...
2006 Aug 03
2
NLME: Problem with plotting ranef vs a factor
...t; and the "levels" command that it is a factor. Yet despite this the plot command is not recognising it as a factor. Here is more information about my problem: I am reading in the data by: Data<-read.csv("Data1_93_2.csv",header=T) attach(Data) Data1_93<-transform(Data,log2game=log2(gamedens+1)) pcat<-as.factor(pcat) Data1_93<-groupedData(log2game ~ day | subjectno, data=Data1_93) detach(Data) Here is the code to check that the covariate called pcat is indeed a factor: > levels(pcat) [1] "1" "2" "3" > is.factor(pcat) [1] TRUE a...