search for: fgl1

Displaying 1 result from an estimated 1 matches for "fgl1".

Did you mean: egl1
2004 Sep 23
0
nnet and weights: error analysis using V&R example
...library(MASS) data(flg) con <- function(...) { print(tab <- table(...)) diag(tab) <- 0 cat("error rate = ", round(100*sum(tab)/length(list(...)[[1]]), 2), "%\n") invisible() } set.seed(123) rand <- sample(10, dim(fgl)[1], replace = T) fgl1 <- fgl fgl1[1:9] <- lapply(fgl[, 1:9], function(x) {r <- range(x); (x - r[1])/diff(r)}) CVnn2 <- function(formula, data, size = c(0,4,4,10,10), lambda = c(0, rep(c(0.001, 0.01),2)), nreps = 1, nifold = 5, verbose = 99, ...) { CVnn1 <- f...