![]() (Likewise, there are some functions in other applications that are not accessible in the SVB environment.) Specifically, all user-interface functions, such as user-defined dialogs or functions for retrieving variable lists or value lists (via dialogs from the user) are closely tied to the Statistica application itself. While the objects of the Statistica libraries are fully exposed, and accessible to all compatible Visual Basic programming environments in other applications, there are a few functions that are only available in SVB, i.e., when the Visual Basic program is run from within Statistica. Some limitations and differences between SVB and Visual Basic in other applications All analysis and graphics options and methods available in Statistica are fully exposed in the respective object libraries, and even advanced and complex analyses can be automated and performed routinely "behind the scenes" from within any other Visual Basic compatible application. This simple example illustrates the power and versatility of the Note that this is accomplished without the user ever seeing or having to interact with the Statistica application - the program runs entirely invisibly, and the results appear inside the Excel spreadsheet. ![]() When you run this Visual Basic program from Microsoft Excel (via the Visual Basic Editor), it will paste the results from the Summary results spreadsheet of the Basic Statistics - Descriptive Statistics analysis into the current Excel Spreadsheet. ' Set the cursor to cell A1 in the currently active Excel Spreadsheet.ĪctiveSheet.PasteSpecial Format:="Biff4" s.Close ' Copy the highlight selection (all rows and columns in the ' Summary results Spreadsheet. ' Select all rows and columns in the Statistica results Spreadsheet. ' Spreadsheet from the Statistica Basic Statistics module.ī = scBasDescriptives BasStat.Run ' the following 7 lines of code will produce a summary results Set s = _ (StatApp.Path & "\Examples\DataSets\Exp.sta")ĭim BasStat As Statistica.Analysis Set BasStat = StatApp.Analysis(scBasicStatistics, s) ' (note: the actual location of that data file may be ' Basic Statistics module start it with data file exp ' Create a Statistica Basic Statistics object (i.e., run the ' Application object and assign it to variable (object) StatApp.ĭim StatApp As New Statistica.Application ' Run the Statistica application create the Statistica ![]() Now type or paste in the following program into the program editor:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |