Strange predicted values
Posted: Thu Dec 10, 2020 6:10 pm
Hi,
I'm currently taking an intro to multilevel modelling class in my university and I'm having trouble making sense of some off my graphs.
The model is trying to explain the influence of age, GDP per capita in ppp (country level variable), gender (dummy variable on individual level), gender*age and GDP per capita in ppp*age on responsibility at work (a scale variable I made through factor analysis). It's a random slope model where all the variables are standardized and the slope is allowed to vary from country to country based on age.
When I'm making a graph of the predicted values of the model on age I'm getting weird lines.

I do get a desired graph when I remove the variables Gender and Gender*age (graph mentioned below). I would love to keep these variables in my model though since de -2log likelihood is much lower when they are added to the model. How can I make my prediction a straight line instead of the above mentioned chaos? Or can the above mentioned graph be reported in a paper?

I'm currently taking an intro to multilevel modelling class in my university and I'm having trouble making sense of some off my graphs.
The model is trying to explain the influence of age, GDP per capita in ppp (country level variable), gender (dummy variable on individual level), gender*age and GDP per capita in ppp*age on responsibility at work (a scale variable I made through factor analysis). It's a random slope model where all the variables are standardized and the slope is allowed to vary from country to country based on age.
When I'm making a graph of the predicted values of the model on age I'm getting weird lines.

I do get a desired graph when I remove the variables Gender and Gender*age (graph mentioned below). I would love to keep these variables in my model though since de -2log likelihood is much lower when they are added to the model. How can I make my prediction a straight line instead of the above mentioned chaos? Or can the above mentioned graph be reported in a paper?
