Skip to content

Commit

Permalink
more elagant break
Browse files Browse the repository at this point in the history
  • Loading branch information
philchalmers committed Jan 6, 2025
1 parent 0817a87 commit 6ea29bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/itemfit.R
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,9 @@ itemfit <- function(x, fit_stats = 'S_X2',
},
par.strip.text=par.strip.text, par.settings=par.settings, ...))
}
if(nrow(empirical.plot_points) == 0)
stop(c('One or more groups have completely missing response data.\n',
'Try taking manual group subsets via extract.group().'), call.=FALSE)
while(nrow(empirical.plot_points) < nrow(empirical.plot_P))
empirical.plot_points <- rbind(empirical.plot_points,
rep(NA, length(empirical.plot_points[1,])))
Expand Down

0 comments on commit 6ea29bb

Please sign in to comment.