Skip to content

Commit

Permalink
Merge pull request #29 from Kyoshido/Kyoshido-patch-2
Browse files Browse the repository at this point in the history
 address issue 22 by @Kyoshido
  • Loading branch information
bernhard-da committed Aug 4, 2023
2 parents 4b7bd5b + b9a18cb commit 701228c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/simCategorical.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ generateValues <- function(dataSample, dataPop, params) {
probs <- predict(mod, newdata=newdata, type="probs")
}else if ( meth %in% c("ctree","cforest") ) {
probs <- predict(mod, newdata=data.table(newdata), type="prob")
probs <- split(probs, seq(nrow(probs)))
probs <- do.call("rbind",probs)
if(ncol(probs)==2){
probs <- probs[,2]
Expand Down

0 comments on commit 701228c

Please sign in to comment.