coef | R Documentation |
Extracts the estimated parameters from either
din
, gdina
, gdina
or gdm
objects.
## S3 method for class 'din' coef(object, ...) ## S3 method for class 'gdina' coef(object, ...) ## S3 method for class 'mcdina' coef(object, ...) ## S3 method for class 'gdm' coef(object, ...) ## S3 method for class 'slca' coef(object, ...)
object |
An object inheriting from either class |
... |
Additional arguments to be passed. |
A vector, a matrix or a data frame of the estimated parameters for the fitted model.
din
, gdina
, gdm
,
mcdina
, slca
data(sim.dina, package="CDM") data(sim.qmatrix, package="CDM") # DINA model d1 <- CDM::din( sim.dina, q.matrix=sim.qmatrix) coef(d1) ## Not run: # GDINA model d2 <- CDM::gdina( sim.dina, q.matrix=sim.qmatrix) coef(d2) # GDM model theta.k <- seq(-4,4,len=11) d3 <- CDM::gdm( sim.dina, irtmodel="2PL", theta.k=theta.k, Qmatrix=as.matrix(sim.qmatrix), centered.latent=TRUE) coef(d3) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.