Use the GGRAPH command. Specify all your variables in the GGRAPH part, define them as data using in the GPL section. Specify a point element for each pair and line element for each pair. Use the color or shape function to distinguish the points in each pair. I suspect that there is a simple example of a one pair in the GPL reference that you can start from to develop your syntax.
Note, if you have lots of cases, this chart is likely to look like a busy abstract painting and you might think about just showing the regression lines without the points. In that case, don't use the point element.
On Wed, Jul 8, 2009 at 7:33 PM, Pirritano, Matthew
<MPirritano@...> wrote:
I want to make a graph where the same DV is paired with multiple different IVs. I know that I can do this in Graph with syntax like:
GRAPH
/SCATTERPLOT(OVERLAY)=month_year month_year month_year
WITH ed_1000 office_1000 outpatient_1000(PAIR)
/MISSING=LISTWISE.
But I need to be able to create separate regression lines for all three relationships. It’s gotta be done in syntax because the process is to be automated in python.
I know that IGRAPH can produce a regression line in syntax, but can it produce three regression lines with three separate independent variables?
Thanks
matt
Matthew Pirritano, Ph.D.
Research Analyst IV
Medical Services Initiative (MSI)
Orange County Health Care Agency
(714) 568-5648