Isaac posted on Thursday, March 17, 2011 - 9:24 am
Hi, I'm running a logistic regression in an LGMM. When I use a binary variable it sets one class as the reference class. When I use all continuous variables it gives me alternative ref classes. Try as I might, I can't get the ref class to change with with addition of the binary variable. I tried starting values but that doesn't seem to work. Any advice as to what I can do? The ref class that I want is the largest class if that helps at all. Thanks, Isaac
Hello! I'm trying to run a model with 3 latent class variables as predictors. I'm having trouble changing the reference class. The program automatically selects the combination of the last class of the 3 variables as the reference class, but based on previous output of those classes, I would like the first class of each variable (and their combination) to be the reference class. Below is the code for the class statement so you can see the variables and the number of classes, and then the code I was using for the code where MPlus decides the reference class. CLASSES = disadv (2) advtg (2) biol (3); ... MODEL: %OVERALL% monthssu on racer; biol on advtg disadv racer; advtg disadv on racer;
MODEL disadv: %disadv#1% [persngl-nophone]; biol on racer; monthssu on racer;
%disadv#2% [persngl-nophone]; biol on racer; monthssu on racer;
MODEL advtg: %advtg#1% [maleprof-malemgmt]; biol on racer; monthssu on racer;
%advtg#2% [maleprof-malemgmt]; biol on racer; monthssu on racer;
MODEL biol: %biol#1% [ki_67r$1 p53r$1 prr$1 err$1 her2r$1]; monthssu on racer;
%biol#2% [ki_67r$1 p53r$1 prr$1 err$1 her2r$1]; monthssu on racer;
%biol#3% [ki_67r$1 p53r$1 prr$1 err$1 her2r$1]; monthssu on racer;
Thank you for the response. I have some follow-up questions. You mentioned giving good starting values and I noticed in other responses you recommend making the starting values for the class I want to be the reference class equal to the class that was the reference class. Is that what you mean by giving good starting values? How would that work with the combination of classes? Or, how else would I determine what the good starting values are? (I was going to use the input provided from the SVALUES statement, but I was having trouble manipulating the starting values in the right way). Thank you again!
Sorry, I have another follow up. When I paste in the estimated means into the input, the code (annotated with what I changed) looks like what I pasted below. But when I run it it doesn't work (I get no output at all). Am I changing the write things? Thanks!
%OVERALL% monthssu ON racer; biol#3 ON advtg#1*-0.22257; !Orig biol#1... disadv#2 ON racer*-2.73738; !Orig disadv#1