psolymos / EDMAinR
Showing 1 of 1 files from the diff.

@@ -20,9 +20,6 @@
Loading
20 20
    x
21 21
}
22 22
23 -
.isPD <- function(x)
24 -
    !inherits(try(chol(SigmaK), silent=TRUE), "try-error")
25 -
26 23
.SigmaK_fit <- function(SigmaKstar, H, pattern, init,
27 24
method = "Nelder-Mead", control = list()) {
28 25
    K <- nrow(SigmaKstar)
@@ -51,7 +48,7 @@
Loading
51 48
    num_max <- .Machine$double.xmax^(1/3)
52 49
    fun <- function(parms){
53 50
        SigmaK <- .vec2mat(parms, fac)
54 -
        if (!.isPD(SigmaK))
51 +
        if (any(diag(SigmaK) <= 0))
55 52
            return(num_max)
56 53
        sum((SigmaKstar - (H %*% SigmaK %*% H))^2)
57 54
    }
@@ -123,7 +120,7 @@
Loading
123 120
        for (i in seq_along(object$boot)) {
124 121
            object$boot[[i]][["SigmaK"]] <- .SigmaK_fit(
125 122
                object$boot[[i]][["SigmaKstar"]],
126 -
                object$boot[[i]][["H"]], pattern)$SigmaK#, ...)
123 +
                object$boot[[i]][["H"]], pattern, ...)$SigmaK
127 124
        }
128 125
    }
129 126
    dimnames(object$SigmaK) <- dimnames(object$SigmaKstar)
Files Coverage
R 89.33%
Project Totals (7 files) 89.33%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading