[R] how to get condition number from lm output

2003-10-03 Thread Mai Zhou
Dear r-help, I ran output - lm(formu, data=mydata) I want to look at the condition number (to see if the matrix is near singular). How? Also, I use the function stepAIC from MASS to select models, how can I see the condition numbers in each step? While I am at it. I find a minor bug: R

Re: [R] how to get condition number from lm output

2003-10-03 Thread Uwe Ligges
Uwe Ligges wrote: Mai Zhou wrote: Dear r-help, I ran output - lm(formu, data=mydata) I want to look at the condition number (to see if the matrix is near singular). How? kappa(output) Also, I use the function stepAIC from MASS to select models, how can I see the

Re: [R] how to get condition number from lm output

2003-10-03 Thread Uwe Ligges
Mai Zhou wrote: Dear r-help, I ran output - lm(formu, data=mydata) I want to look at the condition number (to see if the matrix is near singular). How? kappa(output) Also, I use the function stepAIC from MASS to select models, how can I see the condition numbers in each

[R] foo.RData or foo.r?

2003-10-03 Thread Federico Calboli
Dear All, I suspect this is kind of dumb, but when I was under the thrall of the dark lord (read, using a W2K box), all my work in R files came out as foo.RData. I moved on to GNU/Linux, and all the old .RData files keep on working as they used. No problems in loading and stuff. But I use R from

Re: [R] foo.RData or foo.r?

2003-10-03 Thread Peter Dalgaard BSA
Federico Calboli [EMAIL PROTECTED] writes: Dear All, I suspect this is kind of dumb, but when I was under the thrall of the dark lord (read, using a W2K box), all my work in R files came out as foo.RData. I moved on to GNU/Linux, and all the old .RData files keep on working as they used.

RE: [R] foo.RData or foo.r?

2003-10-03 Thread Adaikalavan RAMASAMY
*.R is for the script file and is ASCII type. *.Rdata (or sometimes *.rda) is the usual extension for R data and contains binary information. If you try to cat a *.Rdata file, you will end up with gibberish as it is binary. Try opening *.Rdata with emacs if you can. Emacs will recognise it as a

RE: [R] foo.RData or foo.r?

2003-10-03 Thread Federico Calboli
On Fri, 2003-10-03 at 13:16, Adaikalavan RAMASAMY wrote: *.R is for the script file and is ASCII type. *.Rdata (or sometimes *.rda) is the usual extension for R data and contains binary information. If you try to cat a *.Rdata file, you will end up with gibberish as it is binary. Try

[R] Stat. Computing and Stat. Graphics 2004 Chambers Award competition

2003-10-03 Thread jose . pinheiro
The Statistical Computing Section of the American Statistical Association announces the competition for the John M. Chambers Statistical Software Award. In 1998 the Association for Computing Machinery presented its Software System Award to John Chambers for the design and development of S. Dr.

Re: R: [R] r editors

2003-10-03 Thread Nick Drew
On a similar note, what are some alternative data editors that one might use instead of the default R data editor? I'm not interested in Excel but something that's freeware, easy to install and use. Any recommendations? ~Nick - Original Message - From: Juan Carlos Correa Morales [EMAIL

[R] deriv and chain rule and matrix derivatives

2003-10-03 Thread Ahmad_Abu_Hammour/STUDENTS/FIRE%FIRE
Hi, Anybody knows if I c= an use deriv to implement CHAIN RULE AND MATRIX derivation. Simple examples: y=expression(log(x)) z=express= ion (x*y) deriv(z,x) # chain rule f=expression(det(x)) # where x is an (nxn) matrix deriv(f, x) Is ther= e any way to work around

Re: R: [R] r editors

2003-10-03 Thread Gabor Grothendieck
I have not used this enough to really recommend it or not but if you want to check it out yourself have a look at EpiData at: http://www.epidata.dk/ --- From: Nick Drew [EMAIL PROTECTED] On a similar note, what are some alternative data editors that one might use instead of the default

Re: [R] foo.RData or foo.r?

2003-10-03 Thread Jason Turner
Federico Calboli wrote: On Fri, 2003-10-03 at 13:16, Adaikalavan RAMASAMY wrote: *.R is for the script file and is ASCII type. *.Rdata (or sometimes *.rda) is the usual extension for R data and contains binary information. If you try to cat a *.Rdata file, you will end up with gibberish as it is

Re: R: [R] r editors

2003-10-03 Thread Jason Turner
Nick Drew wrote: On a similar note, what are some alternative data editors that one might use instead of the default R data editor? I'm not interested in Excel but something that's freeware, easy to install and use. Any recommendations? If you don't like Excel for financial or license reasons,

[R] allocating memory in a C module

2003-10-03 Thread Rajarshi Guha
Hi, I'm using a package that has a number of formats. I have C code to parse these formats the results of which are generally integer arrays. I would like to utilize these modules in R rather than writing R code to read in these files (and also to learn about R extensions). Essentially what I

Re: [R] allocating memory in a C module

2003-10-03 Thread Thomas Lumley
On Fri, 3 Oct 2003, Rajarshi Guha wrote: Hi, I'm using a package that has a number of formats. I have C code to parse these formats the results of which are generally integer arrays. I would like to utilize these modules in R rather than writing R code to read in these files (and also to

Re: [R] allocating memory in a C module (fwd)

2003-10-03 Thread Thomas Lumley
I pressed ^X in the wrong window. Here's the right code: Here's some code that does a pointless example In C: #include Rinternals.h /* function takes no arguments and returns an object */ SEXP pie(){ int n; SEXP alist, avector; /* work out how long a list to

[R] More questions about R extension programming

2003-10-03 Thread Rajarshi Guha
On Fri, 2003-10-03 at 17:01, Rajarshi Guha wrote: Hi, I'm using a package that has a number of formats. I have C code to parse these formats the results of which are generally integer arrays. I would like to utilize these modules in R rather than writing R code to read in these files (and