[R] poLCA package inquiry

2012-05-29 Thread KDT
Dear R-users! I am using the poLCA package to find latent classes in a dataset with binary outcomes. Several hundreds of persons can engage hundreds of items. Assume 100 items being engaged by 500 persons, the resulting dataframe is as shown below (5 persons). item1 item2 item3 item4 item5 .

[R] model frame and formula mismatch with latent class analysis poLCA

2012-05-29 Thread KDT
Dear R-users, I keep getting an ERROR saying " Error in model.matrix.default(formula, mframe) : model frame and formula mismatch in model.matrix() " when i fit poLCA with more than 63 variables. Below are the details. I am trying to do a Latent Class Analysis using poLCA. My data set contains bi

[R] poLCA : Is maximum number of variables limited?

2012-05-29 Thread KDT
Dear R-users, I keep getting an ERROR saying " *Error in model.matrix.default(formula, mframe) : model frame and formula mismatch in model.matrix()* " when i fit poLCA with more than 63 variables. Below are the details. I am trying to do a Latent Class Analysis using poLCA. My data set contains

Re: [R] Extract estimates from each dataset: MI package

2010-06-18 Thread KDT
Thanks Joris, This works best for me!!! :) Thanks once more Trevor -- View this message in context: http://r.789695.n4.nabble.com/Extract-estimates-from-each-dataset-MI-package-tp2259864p2260191.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Extract estimates from each dataset: MI package

2010-06-18 Thread KDT
Thanks Joris and pardon me for over assuming. let me add more information. My data is very huge and it is nested with repeated measurements. This is a sample of the dataset. id sex lang sch age chapt item length Resp 1 10 8 27.02095 31 4 0 1

[R] Extract estimates from each dataset: MI package

2010-06-18 Thread KDT
Dear All, I am currently using the MI package (Su, Gelman, Hill and Yajima) to make multiple Imputations of my dataset with missing values. After fitting a model, I can use display(model) to visualize the pooled estimates as well as estimates of each imputed dataset. I can visualize these also by

[R] MICE Package and LMER

2010-06-14 Thread KDT
Hi R users, I am estimating a multilevel model using lmer. My dataset has missing values and I am using MICE package to make Multiple Imputations. Everything works good until i reach the POOLING stage using the pool() function. I am able to get a summary of the pooled fixed effects but not the

Re: [R] score counts in an aggregate function

2010-04-16 Thread KDT
Thanks Ista Works well Trevor -- View this message in context: http://n4.nabble.com/score-counts-in-an-aggregate-function-tp2007152p2011057.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://st

[R] score counts in an aggregate function

2010-04-16 Thread KDT
Dear R-Users, I have a big data set "mydata" with repeated observation and some missing values. It looks like the format below: userid sex item score1 score2 1 01 1 1 1 02 0 1 1 03 NA 1 1 04 1 0 2