wenchao-ma / gdina Goto Github PK
View Code? Open in Web Editor NEWGDINA
GDINA
Hi.
Recently I used GDINA library to run some CDM models. The summary of DINA/DINO/GDINA has no any problem. When I run ACDM model, the summary of Mac always shows some different values of LogLik/AIC/BIC/CAIC/SABIC. Please tell me if I did anything wrong.
library("GDINA")
factordata <- read.csv("factorandmultiples.csv")
factorQ <- read.csv("q-matrix.csv")
ACDMmod1 <- GDINA(dat = factordata, Q = factorQ, model = "ACDM")
summary(ACDMmod1)
Hi, when I try to run
est <- GDINA(dat = data, Q = Q, model = "GDINA")
with my own data, I get the following error:
Error in alpha2(K): Mat::col(): index out of bounds
Traceback:
1. GDINA(dat = data, Q = Q, model = "logitGDINA")
2. SG.Est(dat = dat, Q = Q, model = model, sequential = sequential,
. att.dist = att.dist, att.prior = att.prior, saturated = saturated,
. att.str = att.str, mono.constraint = mono.constraint, latent.var = latent.var,
. verbose = verbose, catprob.parm = catprob.parm, loglinear = loglinear,
. item.names = item.names, control = control, item.prior = item.prior,
. nloptr_args = nloptr.args, auglag_args = auglag.args, solnp_args = solnp.args,
. linkfunc = linkfunc, higher.order = higher.order, solver = solver,
. DesignMatrices = design.matrix, ConstrPairs = constr.pairs)
3. as.matrix(att.structure(hierarchy.list = att.str, K = K, Q = Q,
. att.prob = "uniform")$att.str)
4. att.structure(hierarchy.list = att.str, K = K, Q = Q, att.prob = "uniform")
5. attributepattern(K = K, Q = Q)
6. alpha2(K)
I could not find what is wrong with my data.
Any tips? thanks
I installed GDINA 1.9.9.9 and tried to re-run a command that worked just fine previously:
mod4<-GDINA(dat = rdata_rev[,-1], verbose = 2, Q = qmatrix_rev3[,c(-1)], model = "GDINA", att.prior = struc$att.prob, att.str = TRUE, att.dist = "saturated")
Now I get the following error.
Error in .Call("_GDINA_eta", PACKAGE = "GDINA", Q) : "_GDINA_eta" not available for .Call() for package "GDINA"
A GDINA model with user-specified attribute structure runs without problems (Example 5 in GDINA
documentation).
Q <- sim30GDINA$simQ
K <- ncol(Q)
# divergent structure A1->A2->A3;A1->A4->A5;A1->A4->A6
diverg <- list(c(1,2),
c(2,3),
c(1,4),
c(4,5))
struc <- att.structure(diverg,K)
# data simulation
N <- 1000
true.lc <- sample(c(1:2^K),N,replace=TRUE,prob=struc$att.prob)
table(true.lc) #check the sample
true.att <- attributepattern(K)[true.lc,]
gs <- matrix(rep(0.1,2*nrow(Q)),ncol=2)
# data simulation
simD <- simGDINA(N,Q,gs.parm = gs,
model = "DINA",attribute = true.att)
dat <- extract(simD,"dat")
modp1 <- GDINA(dat = dat, Q = Q, att.prior = struc$att.prob, att.str = TRUE, att.dist = "saturated")
Thereafter, modelcomp
gives the following errors:
lr <- modelcomp(mod4, method = "LR")
error: matrix multiplication: incompatible matrix dimensions: 2x4 and 3x1
Error in Calc_Dj(item.parm[[j]], designMj = DesignMatrices[[j]], linkfunc = linkfunc[j]) :
matrix multiplication: incompatible matrix dimensions: 2x4 and 3x1
wald <- modelcomp(mod4, method = "Wald")
Error in svd(X) : infinite or missing values in 'x'
Hello,
I am running GDINA and when I tried to use the modelfit
function, I received this error:
Error in modelfit(mod4) : could not find function "modelfit"
I just updated the GDINA package in R. I would appreciate any help you could provide in using the modelfit
function. Please let me know if you need further information, and thank you for your help!
I am trying to install GDINA on MRAN 4.0.2 on Ubuntu 18.04 server and I am getting below error. Please advise how may I do the installation.
Microsoft R Open 4.0.2
The enhanced R distribution from Microsoft
Microsoft packages Copyright (C) 2020 Microsoft Corporation
Using the Intel MKL for parallel mathematical computing (using 1 cores).
Default CRAN mirror snapshot taken on 2020-07-16.
See: https://mran.microsoft.com/.
* installing *source* package ‘GDINA’ ...
** package ‘GDINA’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
.
.
. _<removing some g++ compilation outputs>_
g++ -shared -L/opt/microsoft/ropen/4.0.2/lib64/R/lib -o GDINA.so Lik.o Lik2.o LouisC.o Mord.o Mstep.o NgRg.o RcppExports.o SE.o aggregateCol.o fitstats.o scorep.o sequP.o util.o varsigma.o Microsoft R Open 4.0.2 The enhanced R distribution from Microsoft Microsoft packages Copyright (C) 2020 Microsoft Corporation Using the Intel MKL for parallel mathematical computing (using 1 cores). Default CRAN mirror snapshot taken on 2020-07-16. See: https://mran.microsoft.com/. -L/opt/microsoft/ropen/4.0.2/lib64/R/lib -lRlapack -L/opt/microsoft/ropen/4.0.2/lib64/R/lib -lRblas -lgfortran -lm -L/opt/microsoft/ropen/4.0.2/lib64/R/lib -lR
g++: error: Microsoft: No such file or directory
g++: error: R: No such file or directory
g++: error: Open: No such file or directory
g++: error: 4.0.2: No such file or directory
g++: error: The: No such file or directory
g++: error: enhanced: No such file or directory
g++: error: R: No such file or directory
g++: error: distribution: No such file or directory
g++: error: from: No such file or directory
g++: error: Microsoft: No such file or directory
g++: error: Microsoft: No such file or directory
g++: error: packages: No such file or directory
g++: error: Copyright: No such file or directory
g++: error: (C): No such file or directory
g++: error: 2020: No such file or directory
g++: error: Microsoft: No such file or directory
g++: error: Corporation: No such file or directory
g++: error: Using: No such file or directory
g++: error: the: No such file or directory
g++: error: Intel: No such file or directory
g++: error: MKL: No such file or directory
g++: error: for: No such file or directory
g++: error: parallel: No such file or directory
g++: error: mathematical: No such file or directory
g++: error: computing: No such file or directory
g++: error: (using: No such file or directory
g++: error: 1: No such file or directory
g++: error: cores).: No such file or directory
g++: error: Default: No such file or directory
g++: error: CRAN: No such file or directory
g++: error: mirror: No such file or directory
g++: error: snapshot: No such file or directory
g++: error: taken: No such file or directory
g++: error: on: No such file or directory
g++: error: 2020-07-16.: No such file or directory
g++: error: See:: No such file or directory
g++: error: https://mran.microsoft.com/.: No such file or directory
/opt/microsoft/ropen/4.0.2/lib64/R/share/make/shlib.mk:6: recipe for target 'GDINA.so' failed
make: *** [GDINA.so] Error 1
ERROR: compilation failed for package ‘GDINA’
* removing ‘/home/rstudio/R/x86_64-pc-linux-gnu-library/4.0/GDINA’
Warning in install.packages :
installation of package ‘GDINA’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpTrbkOd/downloaded_packages’
Hello,
I use GDINA for analyzing TIMSS data. After run the gdina
function and reach convergence, in modelfit
function, I received this error:
Error in if (func.lambda(lower, X2, df, b = bb) * func.lambda(l.upper, :
missing value where TRUE/FALSE needed
I would appreciate any help you could provide in using the modelfit
function. Please let me know if you need further information, and thank you for your help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.