Hi, I am trying to create a margins plot to illustrate the interaction term between savings rate (% of GDP, continuous and can take on decimal numbers, call this X1) and a terrorism index that I have created (where 0= no terrorism, 100= worst terrorism in the period, continuous and can take on decimal numbers, call this X2).
margins, at(indexBiNEW=(0(1)100)) at(save=(0(1)23))
marginsplot
These commands aren't giving me what I am looking for I don't think. I want to be able to graph how the interaction term between these variables changes over time- can anyone help? Is this margins command correct? It creates a very squished up graph that is unreadable.
Thanks.
Related Posts with margins plot for*interaction of two continuous variables
Filter specific oservationsHello, everyone I have an employer-employee database and need to keep only the individuals that hav…
t test output in matrix using loopsHello I am struggling to store the results of ttest in matrix using loops. I have stname (string va…
Help to define cases in longitudinal dataHi, I would like to apologise as I am unable to post the data sample here for you all, as the datas…
Descriptive Table Using MataDear Statalist, I am trying to create a simple descriptive table using mata for the first time. My…
Tabulate the same variable multiple timesDear all, I need to tabulate variable Y conditioned on different values another variable X can take…
Subscribe to:
Post Comments (Atom)
0 Response to margins plot for*interaction of two continuous variables
Post a Comment