Wolfram Library Archive

Courseware Demos MathSource Technical Notes
All Collections Articles Books Conference Proceedings
Title Downloads

Using R Within Mathematica

Douglas B. Clarkson
Bryan Minor
Organization: ScienceOps
Department: CEO & President
URL: http://www.scienceops.com
John Westerhoff

2006 Wolfram Technology Conference
Conference location

Champaign IL

Mathematica provides many but not all statistical computing capabilities. When such capabilities are not provided, it is often easy to program these capabilities directly in Mathematica. When this programming is somewhat complicated and these capabilities already exist in other environments, it is often easier to import the required functionality into Mathematica using the various Mathematica interfaces. Here we use the interface to DLLís and compiled languages such as Java or C++. R is a widely available language that is popular with research statisticians because it is free, readily available, and easy to extend. Because of this, many statistical functions, especially in academia, are written specifically for the R environment. Here we explore methods for importing functionality from R into Mathematica. In particular, we are interested in porting an R language function we previously developed for adaptively fitting polychotomous logistic models to multidimensional contingency tables. Example uses are provided.

*Mathematics > Probability and Statistics
*Wolfram Technology > Linking Technology > J/Link
*Wolfram Technology > Linking Technology > MathLink

R, RLink, C++, Java, JLink, MathLink, statistics

WTC_RLink_14Oct2006.pdf (65.4 KB) - PDF Document