Learn R Programming

difNLR (version 1.3.7)

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

Description

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

Usage

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

Arguments

object

an object of "ddfMLR" 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

ddfMLR for DDF detection among nominal data. coef for generic function extracting model coefficients.

Examples

Run this code
# NOT RUN {
# Loading data based on GMAT
data(GMATtest, GMATkey)

Data <- GMATtest[, 1:20]
group <- GMATtest[, "group"]
key <- GMATkey

# Testing both DDF effects
(x <- ddfMLR(Data, group, focal.name = 1, key))

# 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