Hi again Clyde Schechter. Thank you so much for the helpful code. By making BMI categorical (healthy weight vs overweight) I've been able to use margins saving. However, I have a follow-up question on the graph I've generated, shown here:

I used the first spline variable as the horizontal axis variable (as suggested), but I am confused as to what exactly the z-statistic on the y-axis is representing. I know it's the statistic for testing the margin values against zero, but I'm unclear how this relates to the original dependent variable (testosterone levels) when I am attempting to interpret the interaction between age and BMI in relation to testosterone levels. This is probably a stupid question, but I've been unable to find the answer online. Thank you once again for all your assistance, hopefully once I make sure I am interpreting these graphs correctly I will be all set.
I used the first spline variable as the horizontal axis variable (as suggested), but I am confused as to what exactly the z-statistic on the y-axis is representing. I know it's the statistic for testing the margin values against zero, but I'm unclear how this relates to the original dependent variable (testosterone levels) when I am attempting to interpret the interaction between age and BMI in relation to testosterone levels. This is probably a stupid question, but I've been unable to find the answer online. Thank you once again for all your assistance, hopefully once I make sure I am interpreting these graphs correctly I will be all set.
Comment