IMSL_STATDATA
Syntax | Return Value | Arguments | Keyword | Discussion | Example | Version History
The IMSL_STATDATA function retrieves commonly analyzed data sets.
Note
This routine requires an IDL Advanced Math and Stats license. For more information, contact your ITT Visual Information Solutions sales or technical support representative.
Syntax
Result = IMSL_STATDATA(choice)
Return Value
An array containing the desired data set is returned.
Arguments
choice
Data set indicator. See Table 25-7 for a list of values for choice.
Keyword
DOUBLE
If present and nonzero, double precision is used.
Discussion
The IMSL_STATDATA function retrieves a standard data set frequently cited in statistics text books or in this manual. Table 25-8 gives the references for each data set:
Example
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
Version History