manuelreif / pp Goto Github PK
View Code? Open in Web Editor NEWPerson Parameter estimation (1,2,3,4PL model) and GPCM
License: GNU General Public License v3.0
Person Parameter estimation (1,2,3,4PL model) and GPCM
License: GNU General Public License v3.0
To Reproduce
Run the example code in the PPall documentation, substituting the following code for the awmatrix
variable:
# Just one person instead of five... awmatrix will be [1,1:6] instead of [1:5,1:6]
awmatrix <- matrix(c(1,0,1,0,1,1
# ,1,0,0,1,2,0
# ,0,0,0,0,0,0
# ,0,1,1,2,2,1
# ,1,1,1,0,0,1
),byrow=TRUE,ncol=6)
# This call will fail when awmatrix has only one row
respmixed_mle <- PPall(respm = awmatrix,thres = THRESx,
slopes = sl,lowerA = la, upperA=ua,type = "mle",
model2est=model2est)
The error message is Error in NR_mixed(...) : Not a matrix
To Fix
The problem appears to be on PP/PPall.R, line 172:
respm <- respm[!is.na(resPPx[,2]),]
When respm
is an integer matrix with only one row, this line converts respm
to an integer vector. drop=FALSE
needs to be added to prevent the conversion.
in the manual entry for PP_4pl, how is beta_i defined in terms of thres? for a partial credit model, I'm confused as to why the first row must be zeros.
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.