Statistica and Delphi

Statistica 6+

These examples show how to use the more recent version of Delphi with Statistica. They were used with Statistica 6 and might work with the current version, but I have not tested this because I am doing all my statistics and graphing with R now.

Menne Demo Download VBA Demonstration for Statistica 6(7) and Delphi

DStaDev Download StaDev for Delphi

 

Statistica 5.x

The following section refers to an old version of Statistica (5.x). Don't use it for more recent versions, Statistica 6+ has a good VBA implementation which is much more consistent.

 

Statistica StaDev.pas is a Delphi component to create, edit and read data files for Statistica® (Version 5.x) by StatSoft. It maps Set/Get-API calls to properties, so instead of StaSetVarName and StaGetVarName you can use VarName:=VarName+'Blub' . The component also keeps a cached list of variable names for safe variable access by name instead of indexes.

StaDev32.pas and StaDev32.dll by StatSoft are required. The version of the DLL included in this package with StatSoft's kind permission is more recent than that coming with StatSoft 5.1. It corrects for bug that crashes your program when deleting variables with long variable names.

Bug warning and workaround: Some files generated by StatDev have an internal consistency error which is not immediately visible, but may hang the program after you delete a few cases without saving. First workaround: Save after a few operations. Better workaround, as recommended by Michael Busch (Statsoft Germany): load and save the whole data file with Megafile Manager, it will take care of the cleanup. But be careful if you are using text label. MFM keeps the labels, but has its own ideas about the underlying numbers; after you convert back to STA, number start from 100.

StaDev.Pas and the demonstration project StaDevTest include sources and are freeware. Files have been tested with Delphi 5, but should run with earlier 32-bit versions. Use with more recent version might work, but is not recommended. See StaDev.Doc for documentation.