logLik.ddfMLR | R Documentation |
"ddfMLR"
class.S3 methods for extracting log-likelihood, Akaike's
information criterion (AIC) and Schwarz's Bayesian criterion
(BIC) for an object of "ddfMLR"
class.
## S3 method for class 'ddfMLR'
logLik(object, item = "all", ...)
## S3 method for class 'ddfMLR'
AIC(object, item = "all", ...)
## S3 method for class 'ddfMLR'
BIC(object, item = "all", ...)
object |
an object of |
item |
numeric or character: either character |
... |
other generic parameters for S3 methods. |
Adela Hladka (nee Drabinova)
Institute of Computer Science of the Czech Academy of Sciences
Faculty of Mathematics and Physics, Charles University
hladka@cs.cas.cz
Patricia Martinkova
Institute of Computer Science of the Czech Academy of Sciences
martinkova@cs.cas.cz
ddfMLR
for DDF detection among nominal data.
logLik
for generic function extracting log-likelihood.
AIC
for generic function calculating AIC and BIC.
## Not run:
# loading data
data(GMATtest, GMATkey)
Data <- GMATtest[, 1:20] # items
group <- GMATtest[, "group"] # group membership variable
key <- GMATkey # correct answers
# testing both DDF effects
(x <- ddfMLR(Data, group, focal.name = 1, key))
# AIC, BIC, log-likelihood
AIC(x)
BIC(x)
logLik(x)
# AIC, BIC, log-likelihood for the first item
AIC(x, item = 1)
BIC(x, item = 1)
logLik(x, item = 1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.