Skip to contents

This generic function prints estimated parameters from an eirm object returned from the eirm function.

Usage

# S3 method for eirm
print(x, difficulty = FALSE, ...)

Arguments

x

An object returned from the eirm function.

difficulty

Whether difficulty should be used instead of easiness (default: FALSE)

...

Other print-related arguments.

Value

Estimated parameters from an eirm object.

Examples

data("VerbAgg")
mod0 <- eirm(formula = "r2 ~ -1 + situ + btype + (1|id)", data = VerbAgg)
print(mod0) # or, just mod0
#> EIRM formula: "r2 ~ -1 + situ + btype + (1|id)" 
#> 
#> Number of persons: 316 
#> 
#> Number of observations: 7584 
#> 
#> Number of predictors: 4 
#> 
#> Parameter Estimates:
#> 
#>              Easiness       S.E.    z-value       p-value
#> situother   1.3757776 0.09409460  14.621217  2.056918e-48
#> situself    0.3711422 0.09134751   4.062971  4.845215e-05
#> btypescold -1.0310191 0.06714884 -15.354234  3.318058e-53
#> btypeshout -1.9956435 0.07178245 -27.801272 4.186816e-170
#> 
#> Note: The estimated parameters above represent 'easiness'.
#> Use difficulty = TRUE to get difficulty parameters.
print(mod0, difficulty = TRUE)
#> EIRM formula: "r2 ~ -1 + situ + btype + (1|id)" 
#> 
#> Number of persons: 316 
#> 
#> Number of observations: 7584 
#> 
#> Number of predictors: 4 
#> 
#> Parameter Estimates:
#> 
#>            Difficulty       S.E.    z-value       p-value
#> situother  -1.3757776 0.09409460  14.621217  2.056918e-48
#> situself   -0.3711422 0.09134751   4.062971  4.845215e-05
#> btypescold  1.0310191 0.06714884 -15.354234  3.318058e-53
#> btypeshout  1.9956435 0.07178245 -27.801272 4.186816e-170
#> 
#> Note: The estimated parameters above represent 'difficulty'.