Yes, in order to run R scripts, you'll need to first install R.
The current version of R (as of June 2011) is R 2.13.0. If you are using an older version of STATISTICA, you'll need an older version of R. For example STATISTICA 8.3 works with R 2.7.1, which can be found at
http://cran.r-project.org/bin/windows/base/old/2.7.1/
R is a free, open-source language and environment within which statistical techniques are implemented (see
www.r-project.org/about.html). When you install R, a core set of packages (i.e., libraries) are included. R capabilities are extended through user-created packages, which allow specialized statistical techniques, graphs, and more. A complete list of packages can be found at
http://cran.r-project.org/web/packages/
The script you mentioned starts with the following line:
library(statnet) # initialize necessary library
This means that you will need to download the statnet package and all the packages it depends on (e.g., network, ergm, latentnet, etc.), plus all the packages that these depend on.
Once this is done, here are the steps:
- Open R, create a new script, and save it
- Rename the saved file with an ".R" file extension
- Double-click the file to open it in STATISTICA
- Click the Run Macro button (it looks like a blue triangle)
Have fun!
Jen