Skip to content

Commit

Permalink
Avoid duplicated coefficients in print method for mblogit objects
Browse files Browse the repository at this point in the history
  • Loading branch information
melff committed Mar 2, 2024
1 parent c470121 commit 1ad93f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/R/mblogit.R
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ print.summary.mblogit <-
for(i in 1:ncategs){
cat <- categs[i]
patn <- paste0(cat,"~")
ii <- grep(patn,rn.coefs,fixed=TRUE)
ii <- which(startsWith(rn.coefs,patn))
coefs.cat <- coefs[ii,,drop=FALSE]
rownames(coefs.cat) <- gsub(patn,"",rownames(coefs.cat))
if(i>1) cat("\n")
Expand Down

0 comments on commit 1ad93f5

Please sign in to comment.