On Tue, 3 Jan 2012, Ronald McEwan wrote: > I have recently been working with "MINE" > (http://www.exploredata.net/). MINE is a java program that will > work with R. Now that Gretl works with R (and flawlessly I must > say) I would like to use MINE with Gretl via R. So far I am able > to run MINE as a command line function, but not in R. I am not > able to make the necessary adjustment to the MINE.r code to get > this to run. Hopefully someone with more experience with R can > provide some advice in making the MINE.r code adjustments I need > to make. This example is from the MINE.r example file that I tried > to modify. I get "Error: could not find function "MINE".
The R function "MINE" is defined in MINE.r, so you'll have to source() that file, or copy the required functions into an R file of your own. On a quick experiment, it appears that the R/java stuff doesn't work if gretl calls R via its shared library (on Linux at any rate). I found it necessary to do set R_lib off in my gretl script before the "foreign" block that calls for the MINE analysis. Allin Cottrell
