Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to obtain attribute estimates from estQ() #1

Open
cwliu007 opened this issue Nov 18, 2023 · 2 comments
Open

How to obtain attribute estimates from estQ() #1

cwliu007 opened this issue Nov 18, 2023 · 2 comments

Comments

@cwliu007
Copy link

Hello Pablo,

I wonder if it is possible to return the attribute estimates from estQ()? I think it is possible. It will be most appreciated if you could let me know how to do it.

Many thanks for the useful package!

CW

@Pablo-Najera
Copy link
Owner

Hi!

The function estQ only provides an empirically estimated Q-matrix from the data. The suggested Q-matrix can be then used to estimate a model (e.g., G-DINA), from which attribute estimates can be retrieved. The following toy code illustrates how to do it using both the cdmTools and GDINA packages:

library(cdmTools)
library(GDINA)
dat <- GDINA::sim30GDINA$simdat # Illustrative dataset
Q <- cdmTools::estQ(dat, K = 5) # Empirical Q-matrix estimation
fit <- GDINA::GDINA(dat, Q$est.Q, model = "GDINA") # Fit a G-DINA model using the estimated Q-matrix
GDINA::personparm(fit) # Obtain the attribute profile classifications

Hope this helps. Thank you for using the package and for asking!

Pablo

@cwliu007
Copy link
Author

I appreciate your insightful reply. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants