Diff for "FAQ/lines" - CBU statistics Wiki
location: Diff for "FAQ/lines"
Differences between revisions 2 and 7 (spanning 5 versions)
Revision 2 as of 2007-06-19 10:47:36
Size: 1066
Editor: PeterWatson
Comment:
Revision 7 as of 2007-06-19 11:01:46
Size: 1213
Editor: PeterWatson
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Line 4: Line 3:
Suppose we gave four columns of factor scores, f1av to f4av, which we wish plot for each of two clusters, cluster membership forming a sixth column, as in the table below. Suppose we gave four columns of factor scores, f1av to f4av, which we wish plot for each of two clusters, cluster membership forming a sixth column, as in the table below. [attachment:line.doc A bit of editing in the chart editor yields this.]
Line 6: Line 5:
||||||||||||<20% style="VERTICAL-ALIGN: top; TEXT-ALIGN: center">F1av ||F2av || F3av ||F4av || clus || ||||||||||||<20% style="VERTICAL-ALIGN: top; TEXT-ALIGN: center">'''F1av''' ||'''F2av''' || '''F3av''' ||'''F4av''' || '''clus''' ||
Line 25: Line 24:
  /title = 'cluster profiles of four factors'

How do I do a multiple line plot of cluster profiles?

Suppose we gave four columns of factor scores, f1av to f4av, which we wish plot for each of two clusters, cluster membership forming a sixth column, as in the table below. [attachment:line.doc A bit of editing in the chart editor yields this.]

F1av

F2av

F3av

F4av

clus

1

2

2

2

1

2

5

1

4

1

3

4

3

5

2

2

3

4

6

2

A multiple line plot can be drawn using the syntax below.

VARSTOCASES                                          /MAKE score FROM f1av TO f4av.                        
LIST.

compute facno=$casenum.
compute facno=mod(facno,4).
if(facno eq 0) facno=4.
exe.


GRAPH
  /title = 'cluster profiles of four factors'
  /LINE(MULTIPLE)MEAN(score) BY facno BY clus
  /MISSING=REPORT.

None: FAQ/lines (last edited 2013-03-08 10:17:39 by localhost)