Skip to content

Commit

Permalink
use inherits
Browse files Browse the repository at this point in the history
  • Loading branch information
philchalmers committed Sep 5, 2024
1 parent ee6a36b commit 29f7ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/estfun.R
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ estfun.AllModelClass <- function(x, weights = extract.mirt(x, "survey.weights"),
## check class
epars <- mod2values(x)
was_discrete <- FALSE
if(class(x) == 'DiscreteClass'){
if(inherits(x, 'DiscreteClass')){
was_discrete <- TRUE
class(x) <- "SingleGroupClass"
}
Expand Down

0 comments on commit 29f7ccb

Please sign in to comment.