Statistica Developer Network

Need SDN Help?

Download Now

Questions?

Contact Us

Thank you for using the Statistica Developer Network documentation site. For your convenience we have moved this content to the help documents that come with your software. You may also download the SDN product help directly.

About

Statistica Visual Basic code screenshotThe Statistica Object model is a COM-based application programming interface (API) that allows programmatic access to all Statistica applications. Everything that can be accomplished interactively in the program can be achieved through the Statistica API. Since the API is based on Microsoft COM technology, it allows the interface to be exposed to all external programs that support COM. This includes scripting languages (VBScript, Perl, PowerShell, etc.) as well as native high-level languages (e.g., C++) and all .NET languages (C#, Visual Basic, ASP.NET) via the .NET–COM interop layer.

The Statistica Application Programmer’s Interface (API) offers a rich object model that grants you access to all the functionality available to Statistica interactively. Anything that can be performed through Statistica’s interface can also be programmed. Statistica’s object model is designed to mirror the user interface of Statistica. For example, there is a class for every analysis dialog box; additionally, each of these classes encompasses all of the successive properties that you would find in the respective dialog box.

To simplify Statistica programming, all analysis and graph creation scripts can be recorded for you, saving you valuable time and effort by turning repetitive tasks into simple, automated procedures. After selecting any of the statistical analyses from the Statistics tab or Data Mining tab, or graphics analyses from the Graphs tab, all actions such as variable selections, option settings, output, etc., are recorded “behind the scenes”. You can transfer this recording to the Statistica Visual Basic editor window at any time; this is accomplished by selecting Create Macro from the Options button menu available in all analysis and graph dialog boxes.

Even multiple analyses can be recorded by creating a master macro. You can record a master macro of your entire session that can consist of several analyses and graphs; this recording will “connect” all analyses performed from the Statistics, Data Mining, or Graphs tabs. The master macro recording will begin when you turn on the recording, and it will end when you stop the recording. In between these actions, all file selections, analyses, and most data management operations are recorded. Once you are finished, you simply stop the recording and an SVB macro will be created with all of your analysis and data management operations generated for you.

Along with analyses and graphs, Statistica’s object model also exposes all of its document types; you can easily customize a graph, manipulate data in a spreadsheet, format a report, and organize a workbook via automation.