Hi there, I am trying to analyze some data using the lme package. In my case there is a variable called Newmarker that can only take 2 values (number 1 or number 2). I have used the as.factor to remark this fact but an error message appears stating: attempt to set rownames on object with no dimensions.
Here is the code I have used: *Dataset <- read.table("Data2.txt", header=TRUE, sep="", na.strings="NA", dec=".", strip.white=TRUE) Dataset$Newmarker <- as.factor(Dataset$Newmarker) attach(Dataset) lme.1 <- lme(Newmarker ~ Age, data=Dataset, random= ~1|ID) summary(lme.1)* If I don't use the as.factor I have no problems but I don't think this is the correct way to proceed... The other variables I use can have any value. Can anybody help me please? Thanking you in advance, Regards, Igor Blanco [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org 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.