checkRd: (7) activate.Rd:25-28: \item in \arguments must have non-empty label
checkRd: (7) activate.Rd:29-32: \item in \arguments must have non-empty label
checkRd: (7) nnetPredInt.Rd:51-53: \item in \arguments must have non-empty label
checkRd: (7) nnetPredInt.Rd:54-56: \item in \arguments must have non-empty label
checkRd: (7) nnetPredInt.Rd:57-59: \item in \arguments must have non-empty label
checkRd: (7) activate.Rd:25-28: \item in \arguments must have non-empty label
checkRd: (7) activate.Rd:29-32: \item in \arguments must have non-empty label
checkRd: (7) nnetPredInt.Rd:51-53: \item in \arguments must have non-empty label
checkRd: (7) nnetPredInt.Rd:54-56: \item in \arguments must have non-empty label
checkRd: (7) nnetPredInt.Rd:57-59: \item in \arguments must have non-empty label
checkRd: (7) activate.Rd:25-28: \item in \arguments must have non-empty label
checkRd: (7) activate.Rd:29-32: \item in \arguments must have non-empty label
checkRd: (7) nnetPredInt.Rd:51-53: \item in \arguments must have non-empty label
checkRd: (7) nnetPredInt.Rd:54-56: \item in \arguments must have non-empty label
checkRd: (7) nnetPredInt.Rd:57-59: \item in \arguments must have non-empty label
Running examples in ‘nnetpredint-Ex.R’ failed
The error most likely occurred in:

> ### Name: nnetPredInt
> ### Title: Prediction Intervals of Neural Networks
> ### Aliases: nnetPredInt nnetPredInt.default nnetPredInt.nnet
> ###   nnetPredInt.nn nnetPredInt.rsnns
> 
> ### ** Examples
> 
> # Example 1: Using the nn object trained by neuralnet package
> set.seed(500)
> library(MASS)
> data <- Boston
> maxs <- apply(data, 2, max)
> mins <- apply(data, 2, min)
> scaled <- as.data.frame(scale(data, center = mins, scale = maxs - mins)) # normalization
> index <- sample(1:nrow(data),round(0.75*nrow(data)))
> train_ <- scaled[index,]
> test_ <- scaled[-index,]
> 
> library(neuralnet) # Training
> n <- names(train_)
> f <- as.formula(paste("medv ~", paste(n[!n %in% "medv"], collapse = " + ")))
> nn <- neuralnet(f,data = train_,hidden = c(5,3),linear.output = FALSE)
> plot(nn)
> 
> library(nnetpredint) # Getting prediction confidence interval
> x <- train_[,-14]
> y <- train_[,14]
> newData <- test_[,-14]
> 
> # S3 generic method: Object of nn
> yPredInt <- nnetPredInt(nn, x, y, newData)
Error in (class(xTrain) %in% c("matrix", "data.frame")) && (class(yTrain) %in%  : 
  'length = 2' in coercion to 'logical(1)'
Calls: nnetPredInt -> nnetPredInt.nn -> getPredInt -> checkInput
Execution halted
checkRd: (7) activate.Rd:25-28: \item in \arguments must have non-empty label
checkRd: (7) activate.Rd:29-32: \item in \arguments must have non-empty label
checkRd: (7) nnetPredInt.Rd:51-53: \item in \arguments must have non-empty label
checkRd: (7) nnetPredInt.Rd:54-56: \item in \arguments must have non-empty label
checkRd: (7) nnetPredInt.Rd:57-59: \item in \arguments must have non-empty label
Running examples in ‘nnetpredint-Ex.R’ failed
The error most likely occurred in:

> ### Name: nnetPredInt
> ### Title: Prediction Intervals of Neural Networks
> ### Aliases: nnetPredInt nnetPredInt.default nnetPredInt.nnet
> ###   nnetPredInt.nn nnetPredInt.rsnns
> 
> ### ** Examples
> 
> # Example 1: Using the nn object trained by neuralnet package
> set.seed(500)
> library(MASS)
> data <- Boston
> maxs <- apply(data, 2, max)
> mins <- apply(data, 2, min)
> scaled <- as.data.frame(scale(data, center = mins, scale = maxs - mins)) # normalization
> index <- sample(1:nrow(data),round(0.75*nrow(data)))
> train_ <- scaled[index,]
> test_ <- scaled[-index,]
> 
> library(neuralnet) # Training
> n <- names(train_)
> f <- as.formula(paste("medv ~", paste(n[!n %in% "medv"], collapse = " + ")))
> nn <- neuralnet(f,data = train_,hidden = c(5,3),linear.output = FALSE)
> plot(nn)
> 
> library(nnetpredint) # Getting prediction confidence interval
> x <- train_[,-14]
> y <- train_[,14]
> newData <- test_[,-14]
> 
> # S3 generic method: Object of nn
> yPredInt <- nnetPredInt(nn, x, y, newData)
Error in (class(xTrain) %in% c("matrix", "data.frame")) && (class(yTrain) %in%  : 
  'length = 2' in coercion to 'logical(1)'
Calls: nnetPredInt -> nnetPredInt.nn -> getPredInt -> checkInput
Execution halted
checkRd: (7) activate.Rd:25-28: \item in \arguments must have non-empty label
checkRd: (7) activate.Rd:29-32: \item in \arguments must have non-empty label
checkRd: (7) nnetPredInt.Rd:51-53: \item in \arguments must have non-empty label
checkRd: (7) nnetPredInt.Rd:54-56: \item in \arguments must have non-empty label
checkRd: (7) nnetPredInt.Rd:57-59: \item in \arguments must have non-empty label