Learn R Programming

difNLR (version 1.3.7)

coef.difORD: Extract model coefficients from an object of "difORD" class.

Description

S3 method for extracting estimated model coefficients from an object of "difORD" class.

Usage

# S3 method for difORD
coef(object, SE = FALSE, simplify = FALSE, ...)

Arguments

object

an object of "difORD" class.

SE

logical: should the standard errors of estimated parameters be also returned? (default is FALSE).

simplify

logical: should the estimated parameters be simplified to a matrix? (default is FALSE).

...

other generic parameters for coef() method.

See Also

difORD for DIF detection among ordinal data. coef for generic function extracting model coefficients.

Examples

Run this code
# NOT RUN {
# Loading data
data(dataMedicalgraded, package = "ShinyItemAnalysis")
Data <- dataMedicalgraded[, 1:5]
group <- dataMedicalgraded[, 101]

# Testing both DIF effects with adjacent category logit model
(x <- difORD(Data, group, focal.name = 1, model = "adjacent"))

# Estimated parameters
coef(x)
coef(x, SE = TRUE)
coef(x, simplify = TRUE)
coef(x, SE = TRUE, simplify = TRUE)
# }

Run the code above in your browser using DataLab