Useobservations command PreviousNext
Mplus Discussion > Multilevel Data/Complex Sample >
 Thomas Klausch posted on Wednesday, May 09, 2012 - 1:12 pm
Is there a way to select more than one group based on a categorical variable, m say, using useobservations? In particular:

useobservations are m==1 works well, whereas

useobservations are (m==1 | m==2) does not work. What am I doing wrong? Is there a way to select both m==1 and m==2? Thanks!

(Sorry, I was not sure in which category to place this question.)
 Linda K. Muthen posted on Wednesday, May 09, 2012 - 3:50 pm
USEOBSERVATIONS = m eq 1 and m eq 2;
 Hagar ter Kuile posted on Friday, September 13, 2013 - 3:46 am
I have tried that syntax and many variations on it but I still cannot get mplus to select more than one group, any idea why it's not working for me?
Mplus informs me every time that there are 0 observations. If I use grouping everything works fine.
 Linda K. Muthen posted on Friday, September 13, 2013 - 6:42 am
Please send your output, data, and license number to
 Daniela Wagner posted on Friday, November 29, 2013 - 7:42 am
I have a similar problem. My variable "wordssum" has values from 0-10 and has two values for missing data. I just want to select the observations with values 0-10. I tried diferent things, but nothing worked. Can You help me?

examples (nothing worked)
useobservations= wordsum eq 0 to 10;
useobservations= wordsum eq 0-10;
 Linda K. Muthen posted on Friday, November 29, 2013 - 9:45 am
You cannot use a range of values. How about

USEOBSERVATIONS = wordsum GE 0 and wordsum LE 10;
 Daniela Wagner posted on Saturday, November 30, 2013 - 5:15 am
Back to top
Add Your Message Here
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Options: Enable HTML code in message
Automatically activate URLs in message