Guest User

Untitled

a guest
Apr 5th, 2025
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.86 KB | Source Code | 0 0
  1. 17: vapply(X = X, FUN = FUN, FUN.VALUE = numeric(LENGTH), ..., USE.NAMES = USE.NAMES)
  2. 16: nvapply(seq_len(max(convert_keep)), function(community) {
  3.         community_index <- convert_keep == community
  4.         total_indices <- sum(community_index)
  5.         target_length <- unique_length(target_keep[community_index])
  6.         convert_length <- unique_length(convert_keep[community_index])
  7.         if (total_indices < 3) {
  8.             return(0)
  9.         }
  10.         else if (target_length == total_indices || convert_length ==
  11.             total_indices) {
  12.             return(0)
  13.         }
  14.         else if ((target_length * convert_length) == 1) {
  15.             return(1)
  16.         }
  17.         else {
  18.             return(igraph::compare(target_keep[community_index],
  19.                 convert_keep[community_index], method = "rand"))
  20.         }
  21.     })
  22. 15: get_rand(convert_keep, target_keep)
  23. 14: order(get_rand(convert_keep, target_keep), rowSums(conversion_table),
  24.         decreasing = TRUE)
  25. 13: FUN(X[[i]], ...)
  26. 12: vapply(X = X, FUN = FUN, FUN.VALUE = numeric(LENGTH), ..., USE.NAMES = USE.NAMES)
  27. 11: vapply_FUN(split(X, seq_len(dimensions[1])), FUN = FUN, ...,
  28.         LENGTH = dimensions[2], USE.NAMES = FALSE)
  29. 10: matrix(vapply_FUN(split(X, seq_len(dimensions[1])), FUN = FUN,
  30.         ..., LENGTH = dimensions[2], USE.NAMES = FALSE), dimensions,
  31.         dimnames = dimnames(X), byrow = TRUE)
  32. 9: row_apply(convert.membership[numeric_ID[unique(names(numeric_ID))],
  33.        , drop = FALSE], single_homogenize, target.membership = target.membership)
  34. 8: community.homogenize(target.membership = structure, convert.membership = bootstrap_structure)
  35. 7: itemStability_core(ega_object, structure, bootega.obj$boot.wc,
  36.        bootega.obj$iter)
  37. 6: itemStability(bootega.obj, IS.plot, structure, ...)
  38. 5: (function (bootega.obj, IS.plot = TRUE, structure = NULL, ...)
  39.    {
  40.        item_stability <- itemStability(bootega.obj, IS.plot, structure,
  41.            ...)
  42.        if ("lower_order" %in% names(item_stability)) {
  43.            results <- list(lower_order = dimensionStability_core(item_stability$lower_order),
  44.                higher_order = dimensionStability_core(item_stability$higher_order),
  45.                item.stability = item_stability)
  46.        }
  47.        else {
  48.            results <- dimensionStability_core(item_stability)
  49.        }
  50.        class(results) <- "dimensionStability"
  51.        return(results)
  52.    })(bootega.obj = structure(list(iter = 500, bootGraphs = list(
  53.        structure(c(0, 0, 0, 0, 0.179159576874653, 0.0155534584196898,
  54.        0.0543115970881304, 0.199328891470066, 0, 0, 0, 0.287788161128426,
  55.        0, 0, 0, 0.533613844183926, 0, 0.0494739132013045, 0.0500964965985357,
  56.        0.18043803970601, 0.0220020606114242, 0.00575138764840636,
  57.        0, 0.0779677917481022, 0, 0, 0, 0.106008408982162, 0.173526837639143,
  58.     ...
  59. 4: do.call(what = dimensionStability, args = obtain_arguments(dimensionStability,
  60.        FUN.args = c(list(bootega.obj = results, IS.plot = FALSE),
  61.            ellipse)))
  62. 3: bootEGA(data = data, corr = corr, na.data = na.data, model = model,
  63.        algorithm = algorithm, uni.method = uni.method, iter = iter,
  64.        type = configural.type, ncores = ncores, EGA.type = "EGA",
  65.        typicalStructure = FALSE, plot.itemStability = FALSE, plot.typicalStructure = FALSE,
  66.        seed = seed, verbose = verbose, clear = TRUE, suppress = TRUE,
  67.        ...)
  68. 2: configural(data = data, iter = iter, structure = structure, configural.threshold = configural.threshold,
  69.        configural.type = configural.type, corr = corr, na.data = na.data,
  70.        model = model, algorithm = algorithm, uni.method = uni.method,
  71.        ncores = ncores, seed = seed, verbose = verbose, ...)
  72. 1: EGAnet::invariance(data = dataeg[grepl("^v\\d+", names(dataeg))],
  73.        groups = dataeg$grupo, seed = 1245, na.data = "pairwise",
  74.        corr = "spearman", ncores = 8)
Advertisement
Add Comment
Please, Sign In to add comment