Page 1 of 1

Labelling residual plots

Posted: Sat Apr 07, 2018 3:17 pm
by IB123456
Hello,

I was wondering whether anyone would be able to help me please. I'm hoping to include a graph of my residuals in a report however, would ideally like each residual point to be labelled by the country it identifies and cannot work out how to do this.

Would anyone be able to advise me?
Many thanks,

Re: Labelling residual plots

Posted: Mon Apr 09, 2018 8:46 am
by ChrisCharlton
To do this you will first need a column in your data containing the country labels that is the same length as your residual columns. One way to do this is to use the TAKE command or the Data Manipulation->Unreplicate(take) menu. You need to specify your country column as the input column as well as the column defining the block, and then specify an empty column for the output. Once you have created the column you need to attach the original labels, which you can do via the copy/paste buttons in the categories section of the names window.

To use this column in your graph you need to open the customised graphs window after creating your residual plot, and then change group under plot what? to the newly created column. To attach the labels you need to tick group code in the other tab. Finally, you may want each country to be plotted with a different colour or symbol, in which case you can choose rotate in the appropriate drop-down in the plot style tab.

Re: Labelling residual plots

Posted: Mon Apr 09, 2018 12:54 pm
by IB123456
Thank you very much for your help.