"Unknown option" error variable PreviousNext
Mplus Discussion > Categorical Data Modeling >
 Kelsey Antle posted on Monday, August 25, 2014 - 2:52 pm

I apologize if this is a simple question, but when I run my path analysis I have been getting "unknown option:" followed by one of my variables (not a command). When I removed said dichotomous variable, my analysis came back with the error "unknown option:" followed by a different variable (this time a ratio variable). Is this a common issue? I checked, and all my missing cases are -9999 so I don't think that's the issue.
 Bengt O. Muthen posted on Monday, August 25, 2014 - 3:03 pm
Sounds like a simple syntax error, perhaps involving a missing semi colon. If you can't find it, send output to Support with your license number.
 Kelsey Antle posted on Wednesday, August 27, 2014 - 7:58 am
Thanks so much, I'll do that!
 Demet Kara posted on Tuesday, December 15, 2015 - 10:23 am

I get the following error over and over again. I am trying to convert my Spss file into .csv, it might be due to that but i could not find what is wrong.

"ERROR in VARIABLE command
Unknown option:"

It gives the name of a variable, and if I delete that one, for the next variable it says the same thing.

Can you help me with this problem? Thank you.
 Bengt O. Muthen posted on Tuesday, December 15, 2015 - 2:31 pm
Please send your Mplus output to Support along with your license number.
 Elizabeth Solberg posted on Tuesday, November 22, 2016 - 6:25 am
Hi, I'm also receiving the unknown option error for one of my variable commands, and I don't know why.

I am trying to use the lagvar command.

usevariables = TAd SD OPEN...;
lagvar = TAd(1);

If it makes a difference, my data type is imputation.

I thought it made more sense to create the lag variable from the imputed data, not create the lag variables in the incomplete data set, and then impute the missing lag variables.

Perhaps this is wrong?

Thanks so much for any guidance.
 Bengt O. Muthen posted on Tuesday, November 22, 2016 - 2:43 pm
The lagvar option is a feature of the forthcoming Version 8. So not yet here.
 Elizabeth Solberg posted on Tuesday, November 22, 2016 - 2:59 pm
Thank you, Bengt. That does explain the error, and why I couldn't find anything about the command in the user guide. Is there an alternative for creating lag variables in the present version? I am struggling to find any guidance or examples on this and other forums.

Thank you again for your help.
 Bengt O. Muthen posted on Tuesday, November 22, 2016 - 5:34 pm
It's probably best to create them outside Mplus.
 Rachel Liebman posted on Friday, June 26, 2020 - 11:13 am
I'm trying to obtain the variance decomposition for a 3-level model but I"m not sure how to get the level 3 variance. I have repeated measures over time nested within patients (Level 2), nested within clinicians (Level 3). I thought mplus automatically accounts for the 2 level nesting of patients over time, so that it is not necessary to include patient as a cluster variable - is that correct?

When I run the syntax for "Type = twolevel random with cluster = clinician ID (i.e the level 3 cluster variable) it only gives me the variance at level 1 (62%) and Level 2 (12%) which i assume corresponds to repeated measures and clients, respectively? How do i get the level 3 variance?

when I run a model with the level 2 cluster variable (in this case client) I get different variances (Level 1 = 54% and Level 2 = 17%). how do i understand the difference in variance in these 2 models.

I then tried running a 3-level intercept only model using this syntax:
CLUSTER= clinid clieid;

!BETWEEN client%
%BETWEEN clinician%

but i get an error that says "Unknown variables: %BETWEEN in line: %BETWEEN CLINICIAN%"

Any help on a) how to get the level 3 variance component and b) how to fix the syntax error I'm getting would be greatly appreciated.
 Bengt O. Muthen posted on Saturday, June 27, 2020 - 5:43 am
Your Cluster statement has to say that patient is level 2. Perhaps you are thinking of the wide-format approach to repeated measures where you don't have to do that. Also, your %Between% has to use the exact names given in your Cluster statement. If this doesn't help, send your output to Support along with your license number.
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