GHaranczyk Przewodnik po pakiecie R.pdf

(1770 KB) Pobierz
Microsoft Word - R Integration _White Paper__V2.doc
StatSoft White Paper
Integration Options and Features
to Leverage Specialized R Functionality
in STATISTICA and WebSTATISTICA Solutions
Contents at a Glance
Overview and Summary ............................................................................................................................. 3
Basic Architecture and Features of R Support in STATISTICA .................................................................. 7
R Language Extensions: Passing Data to R and Retrieving Results ........................................................ 12
Executing R Scripts from within STATISTICA Visual Basic .................................................................... 16
R Support in WebSTATISTICA ................................................................................................................. 20
Creating R-based STATISTICA Data Miner Nodes.................................................................................. 23
Integrating R into (Web)STATISTICA Enterprise ..................................................................................... 24
Final Comments, and Some Caveats ........................................................................................................ 27
For more information, see www.StatSoft.com
103918484.002.png
Integration of R statistical environment with STATISTICA solutions
July, 2008
StatSoft White Paper
Page 2 of 27
Table of Contents
Overview and Summary ............................................................................................................................. 3
Basic Architecture and Features of R Support in STATISTICA .................................................................. 7
COM Interface to R Environment .......................................................................................................... 8
R Integration Support Macro (R.svb) ..................................................................................................... 8
R Scripts as Native STATISTICA Macros............................................................................................... 8
Retrieving Results................................................................................................................................. 10
R Language Extensions: Passing Data to R and Retrieving Results ........................................................ 12
ActiveDataSet ............................................................................................................................... 12
Spreadsheet (FilePathOrName) ............................................................................................. 12
RouteOutput (RObject,[SpreadsheetName],[SpreadsheetHeader]) .................. 13
Uses (RPackageName,[AttachImports]) ............................................................................ 15
Executing R Scripts from within STATISTICA Visual Basic .................................................................... 16
R Scripts are STATISTICA Macros ....................................................................................................... 16
Passing Parameters to R Scripts: Collection Object...................................................................... 17
Managing Script Results ....................................................................................................................... 19
More Examples ..................................................................................................................................... 19
R Support in WebSTATISTICA ................................................................................................................. 20
WebSTATISTICA is a Powerful R Server ............................................................................................. 21
Off-Loading R Scripts from STATISTICA to WebSTATISTICA ........................................................... 21
Creating R-based STATISTICA Data Miner Nodes.................................................................................. 23
Integrating R into (Web)STATISTICA Enterprise ..................................................................................... 24
Creating R-based Analysis Configurations........................................................................................... 24
Calling R Scripts from SVB Analysis Configurations ......................................................................... 26
Summary ............................................................................................................................................... 26
Final Comments, and Some Caveats ........................................................................................................ 27
Error Handling ...................................................................................................................................... 27
Strengths and Limitations ..................................................................................................................... 27
103918484.003.png
Integration of R statistical environment with STATISTICA solutions
July, 2008
StatSoft White Paper
Page 3 of 27
Overview and Summary
R is a programming language and environment for statistical computing ( http://www.r-project.org ).
The R environment and its source code are freely available under the GNU GPL license; precompiled
binaries exist for Microsoft Windows, Unix and Mac OS platforms. R uses a command line interface,
but several graphical user interfaces are also available.
R is highly extensible: users can submit libraries ("packages") implementing a set of functions, usually
for a specific area of their expertise/research. R community maintains several centralized repositories
that make hundreds of such packages readily available to all users over the Internet. Many of these
packages cater specifically to highly specialized audiences with particular data analysis needs.
The goal of this document is to provide a detailed description of new features that make the diversity
and power of R fully available to users of all Stat S o ft Solutions. Furthermore, these features allow
users to combine the unique capabilities of both STATISTICA and R platforms.
Starting with STATISTICA Version 8 MR3:
Native R scripts can be run directly within STATISTICA , WebSTATISTICA , STATISTICA Enterprise
R output can be retrieved as native STATISTICA spreadsheets and graphs, and managed via highly
flexible STATISTICA Workbook containers
103918484.004.png
Integration of R statistical environment with STATISTICA solutions
July, 2008
StatSoft White Paper
Page 4 of 27
Thus, enterprises can now use the specialized routines and capabilities of R with STATISTICA ,
STATISTICA Enterprise and WebSTATISTICA servers to:
Add new R-based “modules”
Leverage STATISTICA's superior graphics, flexible Spreadsheets, and convenient Workbook
containers for various document types to handle output from R
103918484.005.png
Integration of R statistical environment with STATISTICA solutions
July, 2008
StatSoft White Paper
Page 5 of 27
Integrate R into STATISTICA Enterprise to make specialized R functionality available as
reusable analysis templates to users not familiar with the R language, in a secure, role-based
enterprise analysis system
Add R-based analytic nodes to STATISTICA Data Miner , thus leveraging all R capabilities inside
(Web)STATISTICA Data Miner Workspaces
103918484.001.png
Zgłoś jeśli naruszono regulamin