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
How to construct data for survival analysis?Dear Statalist members, I manually constructed duration data for survival analysis. However, I coul…
Loop for weighted medianGood morning, I have a dataset containing indicators for each country for each election year. The in…
Weighted average means in a rolling fashionHi I am not sure how to calculate weighted average means in a rolling fashion. I can only calculat…
Graph with discontinuityGood evening! I have a problem with plotting a graph with discontinuity. I have the following code, …
How to make a graph with confident intervals?Dear all, I would like to make a graph of several concentration indices and their confident interva…
Subscribe to:
Post Comments (Atom)
0 Response to margins plot for*interaction of two continuous variables
Post a Comment