Skip to content

Commit

Permalink
Merge pull request #9 from ck37/nnloglik_mod_fix
Browse files Browse the repository at this point in the history
nnloglik_mod: ensure modZ remains a matrix after dropping duplicate columns
  • Loading branch information
David Benkeser authored May 14, 2018
2 parents a14d72f + 0d67e39 commit f4cbd24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/method_fixes.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ method.CC_nloglik_mod <- function() {
"Algorithm ", colDup,
" is duplicated. Setting weight to 0."
))
modZ <- modZ[, -colDup]
modZ <- modZ[, -colDup, drop = FALSE]
}
modlogitZ <- SuperLearner::trimLogit(modZ, control$trimLogit)
logitZ <- SuperLearner::trimLogit(Z, control$trimLogit)
Expand Down

0 comments on commit f4cbd24

Please sign in to comment.