Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 205399

How to apply wilcox test on the predicted data in R?

$
0
0

We use the following code for k-fold cross validation training data when we have one data file,

set.seed(308)

rand_search <- train(
    Effort ~ ., data = d,
    method = "svmRadial",
    ##Create 20 random parameter values
    tuneLength = 20,
    metric = "RMSE",
    preProc = c("center", "scale"),
    trControl = rand_ctrl
) 
  model1 <- predict(rand_search, newdata = test1)

And another search algorithm like grid
grid_search <- train(
    Effort ~ ., data = d,
    method = "svmRadial",
    ##Create 20 random parameter values
    tuneLength = 20,
    metric = "RMSE",
    preProc = c("center", "scale"),
    trControl = rand_ctrl
) 
model2 <- predict(grid_search, newdata = test1)

My question is if we have to find the significance test (wilcox test), how can we apply it? Do we need to pass mode1 and model 2 to wilcox test like below?

wilcox.test(model1, model 2)


Viewing all articles
Browse latest Browse all 205399

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>