search for: cscmatrix

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

Did you mean: dscmatrix
2004 Jun 25
2
Matrix: Help with syntax and comparison with SparseM
...length(y) E <- as(m,"matrix.diag.csr") D <- diff(E,differences=d) B <- E + (lambda * t(D)%*%D) z <- solve(B,y) z } To do this in Matrix, I am not sure how to get an Identity matrix of dimension m. From looking at the documentation I would think that E<-new("cscMatrix", nrow=m, i=integer(m),x=rep(1,m),p=0:(m-1))) Should do what I want, but it fails? > m<-10 > E<-new("cscMatrix", nrow=m, i=integer(m),x=rep(1,m),p=0:(m-1)) Error in initialize(value, ...) : Invalid names for slots of class cscMatrix: nrow > E<-new("cscMatrix&qu...
2004 May 10
5
R versus SAS: lm performance
Hello, A collegue of mine has compared the runtime of a linear model + anova in SAS and S+. He got the same results, but SAS took a bit more than a minute whereas S+ took 17 minutes. I've tried it in R (1.9.0) and it took 15 min. Neither machine run out of memory, and I assume that all machines have similar hardware, but the S+ and SAS machines are on windows whereas the R machine is Redhat