Skip to content

Commit

Permalink
closes #116
Browse files Browse the repository at this point in the history
  • Loading branch information
philchalmers committed Jul 22, 2017
1 parent f0e168c commit 3080a67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/fscores.internal.R
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ EAPsum <- function(x, full.scores = FALSE, full.scores.SE = FALSE,
Sum.Scores <- 1L:nrow(L0)-1L
MAX.Scores <- cumsum(K-1L)
for(i in seq_len(J-1L)){
T <- itemtrace[itemloc[i+1L]:(itemloc[i+2L] - 1L), ]
T <- itemtrace[itemloc[i+1L]:(itemloc[i+2L] - 1L), , drop=FALSE]
L1[1L, ] <- L0[1L, ] * T[1L, ]
for(j in 1L:nstar+1L){
sums <- 0
Expand Down Expand Up @@ -743,8 +743,8 @@ EAPsum <- function(x, full.scores = FALSE, full.scores.SE = FALSE,
Elist <- vector('list', J)
for(i in which.items){
KK <- K[-i]
T <- itemtrace[c(itemloc[i]:(itemloc[i+1L]-1L)), ]
itemtrace2 <- itemtrace[-c(itemloc[i]:(itemloc[i+1L]-1L)), ]
T <- itemtrace[c(itemloc[i]:(itemloc[i+1L]-1L)), , drop=FALSE]
itemtrace2 <- itemtrace[-c(itemloc[i]:(itemloc[i+1L]-1L)), , drop=FALSE]
if(i != J){
itemloc2 <- itemloc[-i]
itemloc2[i:J] <- itemloc2[i:J] - nrow(T)
Expand Down

0 comments on commit 3080a67

Please sign in to comment.