STATISTICA







Using STADEV with STATISTICA BASIC
Creating a new file

This example creates a new STATISTICA data file with 3 variables and 5 cases and fills it with random numbers.

Note that to use STADEV from STATISTICA BASIC you must put stadev.dll and stadev.inc files in the STATISTICA directory, include the development environment include file at the beginning of the program {$I:'stadev.inc'}, and call the appropriate functions.


{$I:'stadev.inc'}
handle := StaCreateFile (3, 5, "e:\myfiles\test.sta");

StaSetVarName (handle, 1, "ABC");
StaSetVarName (handle, 2, "MIDDLE");
StaSetVarName (handle, 3, "XYZ");

for i := 1 to 3 do
  for j := 1 to 5 do
    StaSetData (handle, i, j, rnd(10));

StaCloseFile (handle);
Back to List of Programs



[StatSoft]
2300 East 14th Street, Tulsa, OK 74104
Phone: (918) 749-1119; Fax: (918) 749-2217

[StatSoft]e-mail: info@statsoft.com

©Copyright StatSoft, Inc., 1984-2004.
StatSoft, StatSoft logo, STATISTICA, SEWSS, SEDAS, Data Miner, SEPATH and GTrees are trademarks of StatSoft, Inc.