We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If there is only the empty model to consider for cv_varsel() with cv_method = "kfold", an error is thrown:
cv_varsel()
cv_method = "kfold"
set.seed(6834) nobs <- 100L mu <- binomial()$linkinv(-0.42 + rnorm(nobs)) trials <- sample.int(30L, size = nobs, replace = TRUE) y <- rbinom(nobs, size = trials, prob = mu) dat <- data.frame(y = y, trials = trials) library(rstanarm) options(mc.cores = parallel::detectCores(logical = FALSE)) r_fit <- stan_glm( cbind(y, trials - y) ~ 1, family = binomial(), data = dat, seed = 101 ) library(projpred) kvs <- cv_varsel(r_fit, method = "forward", cv_method = "kfold", K = 2, seed = 12354)
(tested with projpred's CRAN version 2.1.2). The error thrown by the last call is:
Error in apply(sub_cv_summaries, 1, rbind2list) : dim(X) must have a positive length
The text was updated successfully, but these errors were encountered:
Fix issue stan-dev#331.
4191b0e
e14b636
Fix issue #331.
cc85462
Fixed by commit cc85462.
Sorry, something went wrong.
No branches or pull requests
If there is only the empty model to consider for
cv_varsel()
withcv_method = "kfold"
, an error is thrown:(tested with projpred's CRAN version 2.1.2). The error thrown by the last call is:
The text was updated successfully, but these errors were encountered: