>  Docs Center  >  IDL Reference  >  Advanced Math and Stats  >  IMSL_STATDATA

IMSL_STATDATA

IMSL_STATDATA

The IMSL_STATDATA function retrieves commonly analyzed data sets.

This routine requires an IDL Advanced Math and Stats license. For more information, contact your sales or technical support representative.

The IMSL_STATDATA function retrieves a standard data set frequently cited in statistics text books or in this manual. The following gives the references for each data set:

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)

Examples


Example 1

In this example, IMSL_STATDATA is used to copy the Draper and Smith (1981, Appendix B) data set into X.

x = IMSL_STATDATA(5)
PM, x
 
  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

Syntax


Result = IMSL_STATDATA(Choice [, /DOUBLE])

Return Value


An array containing the desired data set is returned.

Arguments


Choice

Data set indicator. Below is a list of values for choice.

Choice

Number of 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

Keywords


DOUBLE (optional)

If present and nonzero, double precision is used.

Version History


6.4

Introduced



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us