File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ p_value.mipo <- function(model, ...) {
2121 p = as.vector(s $ p.value )
2222 )
2323 # check for ordinal-alike models
24- if (" y.level" %in% colnames(s )) {
25- out $ Response <- as.vector(s $ y.level )
24+ if (! is.null( model $ pooled ) && " y.level" %in% colnames(model $ pooled )) {
25+ out $ Response <- as.vector(model $ pooled $ y.level )
2626 }
2727 out
2828}
@@ -45,8 +45,8 @@ standard_error.mipo <- function(model, ...) {
4545 SE = as.vector(s $ std.error )
4646 )
4747 # check for ordinal-alike models
48- if (" y.level" %in% colnames(s )) {
49- out $ Response <- as.vector(s $ y.level )
48+ if (! is.null( model $ pooled ) && " y.level" %in% colnames(model $ pooled )) {
49+ out $ Response <- as.vector(model $ pooled $ y.level )
5050 }
5151 out
5252}
@@ -85,8 +85,7 @@ model_parameters.mipo <- function(model,
8585 )
8686
8787 # check if we have ordinal/categorical response
88- s <- summary(model )
89- if (" y.level" %in% colnames(s )) {
88+ if (! is.null(model $ pooled ) && " y.level" %in% colnames(model $ pooled )) {
9089 merge_by <- c(" Parameter" , " Response" )
9190 } else {
9291 merge_by <- " Parameter"
You can’t perform that action at this time.
0 commit comments