Skip to content

Error in tab_list[[index_optimal]]: attempt to select less than one element in get1index #29

@CharlesARoy

Description

@CharlesARoy

Just to start the conversation, I was unable to resolve the following bug when attempting to use Tune_ConQuR(). The command I ran was:

result_tuned = Tune_ConQuR(
       tax_tab = Sample_Data,
       batchid = batchid,
       covariates = covar,
       batch_ref_pool = c("0", "1", "2", "3"),
       logistic_lasso_pool = c(T, F),
       quantile_type_pool = c("standard", "lasso", "composite"),
       simple_match_pool = c(T, F),
       lambda_quantile_pool = c(NA, "2p/n", "2p/logn"),
       interplt_pool = c(T, F),
       frequencyL = 0,
       frequencyU = 1,
       cutoff = 0.1,
       delta = 0.4999,
       taus = seq(0.005, 0.995, by = 0.005),
       num_core = 10
     )

And after running for over 2 days, it output the following error:

Error in tab_list[[index_optimal]] :
  attempt to select less than one element in get1index

The error appears to come from this line and presumably there's an edge case from line 248 that causes index_optimal to not be a valid positive integer, for whatever reason.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions