Re: [R] how to connect to a remote PostgreSQL database from R on mac osx

2010-10-20 Thread Prasenjit Kapat
On Wed, Oct 20, 2010 at 6:30 PM, Simone Gabbriellini simone.gabbriell...@gmail.com wrote: Hello List, I would like to connect to a postgreSQL database on a remote server and I am wondering what is the best package to do that. I have just installed RpgSQL, RPostgreSQL, Rdbi and RODBC. I

Re: [R] lattice xyplot - formatting of multiple Y variables when using subgroups

2010-10-17 Thread Prasenjit Kapat
On Sun, Oct 17, 2010 at 10:01 AM, Coen van Hasselt coenvanhass...@gmail.com wrote: Hi all, Using xyplot I want to print to Y variables (y1, y2) versus X, conditional on the group. How can I obtain a line (type=l) for one relationship (ie. y1 ~ x) and points (type=p) for the other (y2 ~ x) ?

[R] kernlab:ksvm:eps-svr: bug?

2010-09-24 Thread Prasenjit Kapat
Hi, A. In a nutshell: The training error, obtained as error (ret), from the return value of a ksvm () call for a eps-svr model is (likely) being computed wrongly. nu-svr and eps-bsvr suffer from this as well. I am attaching three files: (1) ksvm.R from the the kernlab package, un-edited, (2)

[R] lattice: option to sort x when type = l

2010-07-26 Thread Prasenjit Kapat
Hi, (please Cc me) In xyplot (), type = l (or one that includes l, *el*) is (generally) meaningful only when the 'x' variable is sorted. In practice, one either sorts the data frame before hand or writes a tiny panel function which sorts the supplied x and then calls the default panel.xyplot().

Re: [R] lattice: option to sort x when type = l

2010-07-26 Thread Prasenjit Kapat
On Tue, Jul 27, 2010 at 12:41 AM, Deepayan Sarkar deepayan.sar...@gmail.com wrote: On Mon, Jul 26, 2010 at 9:11 PM, Prasenjit Kapat kap...@gmail.com wrote: Hi, (please Cc me) In xyplot (), type = l (or one that includes l, *el*) is (generally) meaningful only when the 'x' variable is sorted

[R] Trouble using Ecdf () from the Hmisc library

2010-04-30 Thread Prasenjit Kapat
Hello: [Kindly Cc when replying] The question in a nutshell is this: Is there a more robust alternative to Ecdf ()? The details: I've used Ecdf () _a lot_ over the past few years and I have learned to live with its warnings. But I am running short on time and patience now [*] Here is a

[R] spectral decomposition for near-singular pd matrices

2008-07-16 Thread Prasenjit Kapat
Hi, I have a matrix M, quite a few ( 1/4th) of its eigen values are of O(10^-16). Analytically I know that M is positive definite, but numerically of course it is not. Some of the small (O(10^-16)) eigen values (as obtained from eigen()) are negative. It is the near-singularity that is causing

Re: [R] spectral decomposition for near-singular pd matrices

2008-07-16 Thread Prasenjit Kapat
Moshe Olshansky m_olshansky at yahoo.com writes: How large is your matrix? Right now I am looking at sizes between 30x30 to 150x150, though it will increase in future. Are the very small eigenvalues well separated? If your matrix is not very small and the lower eigenvalues are clustered,

[R] what does size of a plotting character mean?

2007-10-04 Thread Prasenjit Kapat
Hi, plot(1,1, cex=2) means that the size of the plotting character (empty circle in this case) is double the default size. Now my question is: What characteristic of the symbol (circle) is double? Is it the area or the diameter? What if the symbol is not a circle, what is the generic meaning of

Re: [R] what does size of a plotting character mean?

2007-10-04 Thread Prasenjit Kapat
Hi, Thank you Prof Ripley for the response. On 10/4/07, Prof Brian Ripley [EMAIL PROTECTED] wrote: On Thu, 4 Oct 2007, Prasenjit Kapat wrote: Hi, plot(1,1, cex=2) means that the size of the plotting character (empty circle in this case) is double the default size. Now my question