IMSL Statistics Reference Guide > Utilities > STATDATA Function (PV-WAVE Advantage)
  

STATDATA Function (PV-WAVE Advantage)
Retrieves commonly analyzed data sets.
Usage
result = STATDATA(choice)
Input Parameters
choice—Data set indicator. See choice Values for a list of values for choice.
 
Table 15-4: choice Values
Choice
Numberof Rows
Number of Columns
Description of Data Set
1
16
7
Longley
2
176
2
Wolfer sunspot
3
150
5
Fisher iris
4
144
1
Box and Jenkins Series G
5
13
5
Draper and Smith Appendix B
6
197
1
Box and Jenkins Series A
7
296
2
Box and Jenkins Series J
8
100
4
Robinson Multichannel Time Series
9
113
34
Afifi and Azen Data Set A
10
958
10
Tic-Tac-Toe Endgame
11
4601
58
Spambase Data Set
12
690
16
Credit Approval
13
20000
17
Letter Recognition Data
14
366
35
Dermatology Database
Returned Value
result—An array containing the desired data set is returned.
Input Keyword
Double—If present and nonzero, double precision is used.
Discussion
Function STATDATA retrieves a standard data set frequently cited in statistics text books or in this manual. Standard Data Set References gives the references for each data set:
 
Table 15-5: Standard Data Set References
Choice
References
1
Longley (1967)
2
Anderson (1971, p. 660)
3
Fisher (1936); Mardia et al. (1979, Table 1.2.2)
4
Box and Jenkins (1976, p. 531)
5
Draper and Smith (1981, pp. 629–630)
6
Box and Jenkins (1976, p. 525)
7
Box and Jenkins (1976, pp. 532–533)
8
Robinson (1967, p. 204)
9
Afifi and Azen (1979, pp. 16–22)
10
Tic-Tac-Toe Endgame
11
Spambase Data Set
12
Credit Approval
13
Letter Recognition Data
14
Dermatology Database
Example
In this example, STATDATA is used to copy the Draper and Smith (1981, Appendix B) data set into X.
x = STATDATA(5)
PM, x
This results in the following output:
7.00000      26.0000      6.00000      60.0000      78.5000
1.00000      29.0000      15.0000      52.0000      74.3000
11.0000      56.0000      8.00000      20.0000      104.300
11.0000      31.0000      8.00000      47.0000      87.6000
7.00000      52.0000      6.00000      33.0000      95.9000
11.0000      55.0000      9.00000      22.0000      109.200
3.00000      71.0000      17.0000      6.00000      102.700
1.00000      31.0000      22.0000      44.0000      72.5000
2.00000      54.0000      18.0000      22.0000      93.1000
21.0000      47.0000      4.00000      26.0000      115.900
1.00000      40.0000      23.0000      34.0000      83.8000
11.0000      66.0000      9.00000      12.0000      113.300
10.0000      68.0000      8.00000      12.0000      109.400

Version 2017.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.