Displaying 1 result from an estimated 1 matches for "asmatrixcsrirw".
2004 Nov 18
1
Method dispatch S3/S4 through optimize()
...essage in chol.R in base). tmp1 is of class
"matrix.csr", but is being sent to the S3 class (error in function
sar.lag.mix.f.sM() in R/lag.spsarlm.R).
sar.lag.mix.f.sM <- function(rho, W, e.a, e.b, e.c, n, quiet)
{
SSE <- e.a - 2*rho*e.b + rho*rho*e.c
s2 <- SSE/n
tmp1 <- asMatrixCsrIrW(W, rho)
cat(class(tmp1), "\n")
tmp2 <- chol(tmp1)
# tmp2 <- .cholMatrixCsr(tmp1)
cat(class(tmp2), "\n")
tmp3 <- (tmp2@det)^2
cat(tmp3, "\n")
ret <- (log(tmp3)
- ((n/2)*log(2*pi)) - (n/2)*log(s2) - (1/(2*s2))*SSE)
if (!quiet)
cat("(SparseM)...