Re: Mann-Whitney test?

Leif Andersen <leif-hCbPq2Sbls7o/[email protected]>
Newsgroups gmane.comp.lang.racket.user,gmane.lisp.scheme.plt
Message-ID <CAAVaeEDRS-rr4SKxvq8ADEi3Njf4Bb5fs8mfMZSb9RZLCb=rDA@mail.gmail.com>
You _could_ use the FFI, but you'd have to use the Racket FFI to go to C,
and then use R's FFI to go to C, and then coerce all of R's data to Racket
and all of Racket's data back to R.

Because of this (provided no one makes a #lang R first ;)  ), I think it
would be easier to just spawn up a new R process using something like
system* or process, and use pipes to send data back and forth directly.
Yes, all of the data would need to be serialized into streams, but you
would do an analogous process going from R to C to Racket.


~Leif Andersen

On Sun, Jan 22, 2017 at 12:19 AM, James <[email protected]> wrote:

>
> > Does anybody have an implementation of the Mann-Whitney U test (or the
> equivalent Wilcoxson Rank test) in Racket?  I imagine I could easily hack
> up my own, but somebody else may have done a better job of it already.
>
> I see that no one has answered this question yet.  This is something which
> I would do and have done in R.  So this brings me to a question I was going
> to ask anyway which is how to do multi-language development including
> Racket and R.  Would it be FFI from Racket to R?  I already have a body of
> R code of my own which I would like to be able to call from Racket.  The
> general idea is that It would be an application where things like the GUI
> and networking elements are done in Racket but computations are done in R.
>
> James
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.