[Rpy] Custom R function - howto?

2009-06-23 Thread Sebastian Żurek
Hi! I want to use rpy2 in my Python software to make a use of some custom R-scripts/functions. Is it possible, to call a custom R function with rpy2? For example, having the custom (taken from R tutorial) definition: twosam <- function(y1, y2) { n1 <- length(y1); n2 <- length(y2)

Re: [Rpy] Custom R function - howto?

2009-06-23 Thread Laurent Gautier
Sebastian Żurek wrote: > Hi! > > I want to use rpy2 in my Python software to make a use of some custom > R-scripts/functions. > > Is it possible, to call a custom R function with rpy2? > For example, having the custom (taken from R tutorial) definition: > > twosam <- function(y1, y2) { >

Re: [Rpy] Custom R function - howto?

2009-06-23 Thread Sebastian Żurek
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks for the fast answer, Laurent! The anonymous function solution is OK, when one needs to work occasionally with some piece of code. Unfortunately - my problem is a little bit different: I will be given a whole library of custom R functions, I nee

Re: [Rpy] Custom R function - howto?

2009-06-23 Thread Laurent Gautier
Sebastian Żurek wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Thanks for the fast answer, Laurent! > The anonymous function solution is OK, when one needs to work > occasionally with some piece of code. Unfortunately - my problem is a > little bit different: > > I will be given a w

[Rpy] glm and vcov question

2009-06-23 Thread Skipper Seabold
Hello all, I am relatively new to R and Rpy and have a question about obtaining the covariance matrix after doing a glm estimation so that I can get the standard errors. I'm sure I'm missing something simple, but I haven't been able to find a solution searching the web or the ML archives. I have