[R] R - MATLAB apply like function

2009-03-03 Thread ARDIA David
Dear all, I very often use the R function "apply", for speedup purposes. I am now also using MATLAB, and would like to use the same kind of function. I have already asked MATLAB people, and the answer is : "vectorize"... but of course, this is not always possible. So, instead of using a FOR loop

[R] R communication

2009-02-26 Thread ARDIA David
Dear all, Imagine that you have a small LAN with two computers. I would like to run R on both, and possible to run computations from one computer to the other one. TCP IP protocole would be preferable. Which package would you use for that? I would be very glad if you could also provide me with s

[R] [R-pkgs] AdMit version 1-01.01

2009-01-28 Thread ARDIA David
Dear all, The new version of AdMit (version 1.01-01) is now available from CRAN. SUMMARY The package provides functions to perform the fitting of an adaptive mixture of Student-t distributions to a target density through its kernel function. The mixture approximation can then be used as the impo

[R] Measure of non-ellipticity

2008-09-26 Thread ARDIA David
Dear all, Do you know if there exists a way to "measure" de degree of "non-ellipticity" in a cloud of points. For instance, if you have 1000 draws in dimension d, is there any measure (statistic) which indicates if the cloud of points is elliptical or not (i.e., has been generated from an ellipt

[R] [R-pkgs] AdMit 1.00-02

2008-06-23 Thread Ardia David
'AdMit' 1.00-02 is a contributed R package which provides functions to perform the fitting of an adaptive mixture of Student-t distributions to a target density through its kernel function. The mixture approximation can then be used as the importance density in importance sampling or as the cand

Re: [R] No rule to make target 'R/Copy'

2008-04-25 Thread Ardia David
No... don't think so. I rerun my computer, moved some folders (I deleted the folder with .C file), rerun the compilation, and it worked... Not sure to understand why. Any idea? Prof Brian Ripley wrote: > Do you have a space in some file name? Starting 'Copy '? > > On

[R] No rule to make target 'R/Copy'

2008-04-25 Thread Ardia David
Dear all, I am currently building a package with C code (in scr folder). Everything was ok, but now, I get the following error message when compiling the package using R CMD INSTALL: make[2]: *** No rule to make target 'R/Copy', needed in [...] What does that mean? I can still compile other pack

[R] Passing Inf from R to C using .C("myLibC"...

2008-04-24 Thread Ardia David
Dear all, How can I pass '-Inf' and 'Inf' values from R to C code using the function '.C(...)'. When running my code, I get an error since C does not recognize -Inf and Inf values. Of course, I could use instead a very low (or high) number, but I was wondering whether a more elegant solution ex

[R] optimization and gradient

2008-04-22 Thread Ardia David
Dear all, I am using the functions 'optim' and 'nlminb'. For both, you can provide a function which computes the gradient of the objective function (to enhance speed and precision). In my case, both the objective function and the gradient take time to be computed and share many common computati