data set too large?

1,194 views
Skip to first unread message

Third Jacob

unread,
Mar 23, 2016, 12:49:53 PM3/23/16
to mirt-package
dim(maCSWE)
[1] 13746   254

p11 <- multipleGroup(dat=maCSWE[,-c(1:4)], model='F1 = 1-125
    F2 = 125-250
    COV = F1*F2
    CONSTRAINB=(1-250,d)', itemtype="Rasch", invariance=c("free_means", "free_var"), group = substr(maCSWE$ID,1,4))
Error in min(s, na.rm = TRUE):max(x, na.rm = TRUE) :
  result would be too long a vector
In addition: Warning messages:
1: In min(s, na.rm = TRUE) :
  no non-missing arguments to min; returning Inf
2: In max(x, na.rm = TRUE) :
  no non-missing arguments to max; returning -Inf

Unfortunately I don't understand the problem... Could you please help me?

Thanks!! J

Phil Chalmers

unread,
Mar 23, 2016, 12:54:16 PM3/23/16
to Third Jacob, mirt-package
You need to provide something reproducible. I can't discern what this means without a MWE. https://en.wikipedia.org/wiki/Minimal_Working_Example

Phil

--
You received this message because you are subscribed to the Google Groups "mirt-package" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mirt-package...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Third Jacob

unread,
Mar 23, 2016, 1:02:56 PM3/23/16
to mirt-package, fourt...@gmail.com
I attached the data.frame... Is this sufficient? Thanks!!!

maCSWE.RData

Phil Chalmers

unread,
Mar 23, 2016, 1:05:29 PM3/23/16
to Third Jacob, mirt-package
Attach an R script as well.

Phil

On Wed, Mar 23, 2016 at 1:02 PM, Third Jacob <fourt...@gmail.com> wrote:
I attached the data.frame... Is this sufficient? Thanks!!!

Third Jacob

unread,
Mar 23, 2016, 1:08:13 PM3/23/16
to mirt-package, fourt...@gmail.com

Third Jacob

unread,
Mar 23, 2016, 1:09:15 PM3/23/16
to mirt-package, fourt...@gmail.com
Or rather

p11 <- multipleGroup(dat=maCSWE[,-c(
1:4)], model='F1 = 1-125
    F2 = 125-250
    COV = F1*F2
    CONSTRAINB=(1-250,d)', itemtype="grsm", invariance=c("free_means", "free_var"), group = substr(maCSWE$ID,1,4))

Sorry, but both give the same error

Phil Chalmers

unread,
Mar 23, 2016, 3:20:52 PM3/23/16
to Third Jacob, mirt-package
You have so much missing data that even some items have not response data at all.

dat <- maCSWE[,-c(1:4)]
dim(dat)
which(apply(dat, 2, function(x) sum(is.na(x))) == nrow(dat))

So that crash makes a lot of sense.

Phil

Third Jacob

unread,
Mar 24, 2016, 5:19:48 AM3/24/16
to mirt-package, fourt...@gmail.com
oh, sorry for bothering you with this. i removed these items and now it works :-/ :-)
thanks, j
Reply all
Reply to author
Forward
0 new messages