Dear all,
I'm employing marginal effects in a multivariate regression to look at how changes in a continuous IV (log_avl) impact a continuous DV (Ischemia_Time_Min), as modulated by a 3rd binary IV (it_type3). I'm having an issue interpreting how the other IV's are handled in the model. The code is below.
regress Ischemia_Time_Min c.log_avl i.it_type3 c.eGFR_pct2 i.agecat male race i.bmicat i.cci_cat Auto_CKD_Preop i.renal i.clavien_cat
margins it_type3, at(log_avl=(-2(1)6))
marginsplot, recastci(rarea)

In this model, my interpretation for calculating AAP's in the context of the other covariates is as follows: it is predicting Y (Ischemia_Time_Min) for each value of log_avl if everyone had an it_type3 of 0 or 1, leaving all other covariates as is. If I instead use the atmeans command, I get a similar graph. Here, however, it is setting the population to be exactly average in all respects except for it_type3 (0 or 1) at each value of x (log_avl). Leaving the differences between AAP and APMs aside for a second, what's clear when I observe the output from the atmeans command is that all other IVs are being set to the same value, irrespective of the value of x (log_avl).
I am concerned that this might not be what I want because it is not predicting different values of each IV at each value of x (log_avl). In other words, I know the data well enough to know, for example, that as x(log_avl) changes, there are changes in the IV, eGFR_pct2. Therefore, in the graph above, I don't want eGFR_pct2 to be the exactly the same value at each point of x(log_avl), but rather I want the predicted value to change as a function of x(log_avl). Bottom line, I want to be able to say that at an x-axis value of 2, for example, I'm predicting an Ischemia time of __ and __ for an it_type3 of 0 or 1, respectively, while predicting eGFR_pct2 (and all other IVs) at that given x value, and setting them to be equal across it_type3.
Is there a way to do that? Or am I incorrect in my interpretation of exactly what's being done with the other IV's in this model?
Appreciate any help.
Best,
Julien
I'm employing marginal effects in a multivariate regression to look at how changes in a continuous IV (log_avl) impact a continuous DV (Ischemia_Time_Min), as modulated by a 3rd binary IV (it_type3). I'm having an issue interpreting how the other IV's are handled in the model. The code is below.
regress Ischemia_Time_Min c.log_avl i.it_type3 c.eGFR_pct2 i.agecat male race i.bmicat i.cci_cat Auto_CKD_Preop i.renal i.clavien_cat
margins it_type3, at(log_avl=(-2(1)6))
marginsplot, recastci(rarea)
In this model, my interpretation for calculating AAP's in the context of the other covariates is as follows: it is predicting Y (Ischemia_Time_Min) for each value of log_avl if everyone had an it_type3 of 0 or 1, leaving all other covariates as is. If I instead use the atmeans command, I get a similar graph. Here, however, it is setting the population to be exactly average in all respects except for it_type3 (0 or 1) at each value of x (log_avl). Leaving the differences between AAP and APMs aside for a second, what's clear when I observe the output from the atmeans command is that all other IVs are being set to the same value, irrespective of the value of x (log_avl).
I am concerned that this might not be what I want because it is not predicting different values of each IV at each value of x (log_avl). In other words, I know the data well enough to know, for example, that as x(log_avl) changes, there are changes in the IV, eGFR_pct2. Therefore, in the graph above, I don't want eGFR_pct2 to be the exactly the same value at each point of x(log_avl), but rather I want the predicted value to change as a function of x(log_avl). Bottom line, I want to be able to say that at an x-axis value of 2, for example, I'm predicting an Ischemia time of __ and __ for an it_type3 of 0 or 1, respectively, while predicting eGFR_pct2 (and all other IVs) at that given x value, and setting them to be equal across it_type3.
Is there a way to do that? Or am I incorrect in my interpretation of exactly what's being done with the other IV's in this model?
Appreciate any help.
Best,
Julien
Comment