Re: [R] Controlling the number of interactions of a lme

2012-11-21 Thread cleberchaves
Is it, bbolker! Thank you very, very much! -- View this message in context: http://r.789695.n4.nabble.com/Controlling-the-number-of-interactions-of-a-lme-tp4650183p4650290.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-pro

[R] Controlling the number of interactions of a lme

2012-11-20 Thread cleberchaves
Hello everybody, i'm trying to run a lme but am having a problem. My model have many response variables and when i run the anova, the number of interactions (up to six) is great and the p-values of all variables not appear. I wanted to know if i could to control the number of interactions of the

Re: [R] matrix of all difference between rows values

2012-11-11 Thread cleberchaves
Hi Arun, i don't know exactly the error of yours script. Maybe when i changed from "10-x" to "dat1[1,2]-x" (because my real matrix does not start with 10) the error has appeared, the same numbers repeat in all columns. Maybe when i change for your second script that error does not appear again. Ne

Re: [R] matrix of all difference between rows values

2012-11-10 Thread cleberchaves
Mmmm... Actually, Rui Barradas is the right! Arun kirshna, yours script has an error. That repeat the same set of numbers in all columns... Anyway, thanks for both! -- View this message in context: http://r.789695.n4.nabble.com/matrix-of-all-difference-between-rows-values-tp4649191p4649207.h

Re: [R] matrix of all difference between rows values

2012-11-10 Thread cleberchaves
Thank you very much, arun kirshna! That's it! I only modified the "res1<-apply(toeplitz(dat1[,2]),1,function(x) 10-x)" for "res1<-apply(toeplitz(dat1[,2]),1,function(x) dat1[1,2]-x)" and worked very well! Thanks again! -- View this message in context: http://r.789695.n4.nabble.com/matrix-of-a

[R] matrix of all difference between rows values

2012-11-10 Thread cleberchaves
Hello all, i would like to calculate the difference of all row values and the others row values from my matrix (table 1). The output (table 2) would be a matrix with input matrix's row names on row names and colums names, thereby the difference values among two of the row names could be bether foun