I want to perform neural network analysis for a survival data (the lung dataset in the survival package). However, i got the following Error.
Error in x - y : non-conformable arrays
The following is the source code.
nn.model <- neuralnet(Surv(time, status) ~ ., data = train.data, hidden = c(3, 2), linear.output = FALSE)
Many thanks.
I want to perform neural network analysis for a survival data (the lung dataset in the survival package). However, i got the following Error. Error in x - y : non-conformable arrays The following is the source code. nn.model <- neuralnet(Surv(time, status) ~ ., data = train.data, hidden = c(3, 2), linear.output = FALSE) Many thanks.