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
missing coefficient and standard error when using areg commandHi everyone, I have a data set that I included here. I try to run the regression to find the effect…
5-year relative survival: stpm2Dear Listers, I am running relative survival analysis to explore disease status (yes vs. no) and ha…
Dynamically change variable used in evaluation across rows, for example like this: gen result2a = *data2_varK * `=data2_varJ[_n]'Hello Statalist, 1. Problem description I have a data set that is produced by a data base in the f…
generating shares from a categorical variableDear Statalist members, i need help with a stata code. I have data on cities within the Uk I wan t…
Label two Y axis with Xtline codeI am using an xtline to graph two variables with very different scales. I am using the code below x…
Subscribe to:
Post Comments (Atom)
0 Response to margins plot for*interaction of two continuous variables
Post a Comment