| belonging | safety | wellbeing | negpol | pospol |
|---|---|---|---|---|
| 3.5 | 3.2 | 4.22 | 1.17 | 1.32 |
| 5.19 | 3.5 | 6.06 | 1.11 | 1.34 |
| 5.00 | 5.00 | 5.57 | 1.06 | 1.35 |
These are all scale vriables and some are subscales of larger measures.
negpol: 6 item measure on a scale of 1-4 pospol: 6 item measure on a scale of 1-4 safety: 10 item measure on a scale of 1-5 wellbeing: 16 item measure on a scale of 1-7 belonging: 16 item measure on a scale of 1-5
This my SPSS and R syntax for 3 regressions. I'm trying to plot them in one plot. Is there a way?
fit1 <- lm(safety~negpol+pospol, data=data1)
fit2 <- lm(belonging~negpol+pospol, data=data1)
fit3 <- lm(wellbeing~negpol+pospol, data=data1)`
I'm not sure how I could do this!
You can do this easily in base R with
abline. Using the R-providedmtcarsdataset:The above compares apples to apples. In your question, you are comparing apples to oranges. If you want to look at the effect of
negpolwhile controlling forpospolon three different variables with different scales (however that are somewhat similar (1 to 5 and 1 to 7), you could try something like:Which would give you something like:
though that may not be the best approach and you may want to reconsider exactly what comparisons you are seeking.