01.03.2013 Views

Applied Statistics Using SPSS, STATISTICA, MATLAB and R

Applied Statistics Using SPSS, STATISTICA, MATLAB and R

Applied Statistics Using SPSS, STATISTICA, MATLAB and R

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

42 2 Presenting <strong>and</strong> Summarising the Data<br />

With <strong>STATISTICA</strong>, the variable specification window pops up when clicking<br />

the Variables tab in the Descriptive <strong>Statistics</strong> window. One can<br />

select variables with the mouse or edit their identification numbers in a text box.<br />

For instance, editing “2-4”, means that one wishes the analysis to be performed<br />

starting from variable v2 up to variable v4. There is also a Select All<br />

variables button. The frequency table is outputted into a specific scroll-sheet that is<br />

part of a session workbook file, which constitutes a session logbook that can be<br />

saved (*.stw file) <strong>and</strong> opened at a later session. The entire scroll-sheet (or any<br />

part of the screen) can be copied to the clipboard (from where it can be pasted into<br />

a document in the normal way), using the Screen Catcher tool of the Edit<br />

menu. As an alternative, one can also copy the contents of the table alone in the<br />

normal way.<br />

The <strong>MATLAB</strong> tabulate function computes a 3-column matrix, such that the<br />

first column contains the different values of the argument, the second column<br />

values are absolute frequencies (counts), <strong>and</strong> the third column are these frequencies<br />

in percentage. For the PClass example we have:<br />

» t=tabulate(PClass)<br />

t =<br />

1 6 24<br />

2 16 64<br />

3 3 12<br />

Text output of <strong>MATLAB</strong> can be copied <strong>and</strong> pasted in the usual way.<br />

The R table function – table(PClass) for the example – computes the<br />

counts. The function prop.table(x) computes proportions of each vector x<br />

element. In order to obtain the information of the above last column one should use<br />

prop.table(table(PClass)). Text output of the R console can be copied<br />

<strong>and</strong> pasted in the usual way.<br />

<br />

Percent<br />

70<br />

60<br />

50<br />

40<br />

30<br />

20<br />

10<br />

0<br />

PCLASS<br />

1.00<br />

Figure 2.9. Bar graph, obtained with <strong>SPSS</strong>, representing the frequencies (in<br />

percentage values) of PClass.<br />

2.00<br />

3.00

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!