Skip to content

Commit

Permalink
pass p.item to dice(), close #165
Browse files Browse the repository at this point in the history
  • Loading branch information
dchiu911 committed Mar 13, 2023
1 parent 1d6f86d commit dfde546
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NEWS.md
@@ -1,6 +1,6 @@
# diceR (development version)

* Pass `seed.data` argument to `dice()` (#162)
* Pass `p.item` and `seed.data` arguments to `dice()` (#162, #165)

# diceR 2.0.0

Expand Down
4 changes: 2 additions & 2 deletions R/dice.R
Expand Up @@ -44,7 +44,7 @@
#' dice.obj <- dice(dat, nk = 4, reps = 5, algorithms = "hc", cons.funs =
#' "kmodes", ref.cl = ref.cl, progress = FALSE)
#' str(dice.obj, max.level = 2)
dice <- function(data, nk, reps = 10, algorithms = NULL, k.method = NULL,
dice <- function(data, nk, p.item = 0.8, reps = 10, algorithms = NULL, k.method = NULL,
nmf.method = c("brunet", "lee"), hc.method = "average",
distance = "euclidean",
cons.funs = c("kmodes", "majority", "CSPA", "LCE", "LCA"),
Expand All @@ -59,7 +59,7 @@ dice <- function(data, nk, reps = 10, algorithms = NULL, k.method = NULL,
prep.data <- match.arg(prep.data)

# Generate Diverse Cluster Ensemble
E <- consensus_cluster(data = data, nk = nk, reps = reps,
E <- consensus_cluster(data = data, nk = nk, p.item = p.item, reps = reps,
algorithms = algorithms, nmf.method = nmf.method,
hc.method = hc.method, distance = distance,
prep.data = prep.data, min.var = min.var,
Expand Down
4 changes: 4 additions & 0 deletions man/dice.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dfde546

Please sign in to comment.