Re: [R] Pros and Cons of R

2008-05-25 Thread cls59
R is definitely an excellent environment for data analysis and display. It has quickly become the tool that I use to bind together different models and process the resulting data into reports and graphics. The Sweave package can be especially useful for accomplishing this. R has also been

Re: [R] SVD on a matix

2008-05-25 Thread Yasir Kaheil
the variance is the eigen values of the correlation matrix of yoru matrix X.cor - cor(X) X.e - eigen(X.cor) X.e$values# Eigenvalues of cor(X) = variances you're asking about kayj wrote: Hi All, I performed an svd on a matrix X and saved the first three column of the left singular

Re: [R] R-Excel Macro Problem

2008-05-25 Thread Yasir Kaheil
hi Nate, could you please email me your excel workbook. thanks y nmarti wrote: I'm trying to write R functions into VBA code. I've done this many other times in other documents and everything has run great. But today I keep recieving an error message Run-time error '1004':

Re: [R] IDE

2008-05-25 Thread Michael Lawrence
emacs + ess On Fri, May 23, 2008 at 8:54 AM, Alexandra Almeida [EMAIL PROTECTED] wrote: People, I'm a ubunto user and I used to write my scipts in Java Gui for R, but it is a very slow tool to run my scripts... Do you know some efficient IDE for R? Thank!!! Alexandra Almeida --

Re: [R] gray grid on quartz()

2008-05-25 Thread Prof Brian Ripley
On Sun, 25 May 2008, Angel Berihuete MacĂ­as wrote: Hello everybody. Recently I update from R6.3 to R7.0 on Mac OS X, and an ugly gray grid appear when I use the function image() or pdf() What I am doing wrong? - there is a list r-sig-mac for MacOS enquiries. - There is no R7.0 nor R6.3.

[R] How to write a package based on nlme

2008-05-25 Thread ctu
Dear R Helpers, I try to write a small package that based on nlme however my code does not work. R always appears this message: Error in eval(expr, envir, enclos) : object y not found where y is the response variable. Please help me out! This is my code: require(nlme) AMPmixed-function(y, x,

[R] Vector Product question

2008-05-25 Thread Rory Winston
Hi Ive looked around but I cant figure out how to do this without a for loop. I have a vector of neural net weights from coef.nnet(), which looks like c(3,3,1). I also have a list of weight prefixes, which are c(x,h,y). I would like to obtain a vector that looks like c(x1,x2,x3,h1,h2,h3,y1)

Re: [R] Configuring emacs/ess on Ubuntu

2008-05-25 Thread Dirk Eddelbuettel
On Sun, May 25, 2008 at 10:07:52AM -0400, Wade Wall wrote: I don't know if this is the proper place to ask this, but I am trying to configure emacs/ess on Ubuntu 8.04 to run the way described for ESS and Xemacs in Windows (John Fox's guide). I installed ess as directed at

Re: [R] Configuring emacs/ess on Ubuntu

2008-05-25 Thread Roland Rau
Hi Wade, Wade Wall wrote: Hi all, I don't know if this is the proper place to ask this, but I am trying to configure emacs/ess on Ubuntu 8.04 to run the way described for ESS and I think the easiest way to install emacs/ess on Ubuntu 8.04 is via the repositories. Simply use your favorite

Re: [R] Configuring emacs/ess on Ubuntu

2008-05-25 Thread Dale Steele
$ sudo apt-get install Installs installs ESS version 5.3.0. Is there a repository for more recent version? Thanks. --Dale On Sun, May 25, 2008 at 11:24 AM, Roland Rau [EMAIL PROTECTED] wrote: Hi Wade, Wade Wall wrote: Hi all, I don't know if this is the proper place to ask this, but

Re: [R] Configuring emacs/ess on Ubuntu

2008-05-25 Thread Wade Wall
I first installed through the package manager, but was unable to start R without opening a script file. So I installed from the tarball, but am still unable to open R using any commands; ESS loads into a buffer; but I can't use M-x-R to open R. the only way I can open R is to open a script

Re: [R] marginality principle / selecting the right type of SS for an interaction hypothesis

2008-05-25 Thread John Fox
Dear Bertolt, Since you have specific hypotheses in mind, why not just test them directly as contrasts? That is, test for (1) the difference between men and women in the absence of stereotype threat; (2) the difference between men and women in the presence of stereotype threat; and (3) the

Re: [R] Configuring emacs/ess on Ubuntu

2008-05-25 Thread Dirk Eddelbuettel
On Sun, May 25, 2008 at 11:40:07AM -0400, Dale Steele wrote: $ sudo apt-get install Installs installs ESS version 5.3.0. Is there a repository for more recent version? As it happens, yes and no. There is now a small group working on Ess for Debian/Ubuntu, but there is no Ubuntu

Re: [R] Configuring emacs/ess on Ubuntu

2008-05-25 Thread Roland Rau
Hi Wade, Wade Wall wrote: I first installed through the package manager, but was unable to start R without opening a script file. So I installed from the tarball, but am still unable to open R using any commands; ESS loads into a buffer; but I can't use M-x-R to open R. the only way I can

[R] need help for building R in Ubuntu 8.04

2008-05-25 Thread Nitesh Agrawal
Hi everyone I have been trying to build R in ubuntu 8.04 from its source code but am getting the following error. configure: error: --with-x=yes (default) and X11 headers/libs are not available Please help me and consider me a newbie in linux thanks in advance [[alternative HTML

Re: [R] need help for building R in Ubuntu 8.04

2008-05-25 Thread Erin Hodgess
Try: ./configure --with-x=no On Sun, May 25, 2008 at 1:20 PM, Roland Rau [EMAIL PROTECTED] wrote: Hi, Nitesh Agrawal wrote: Hi everyone I have been trying to build R in ubuntu 8.04 from its source code but am getting the following error. configure: error: --with-x=yes (default) and

Re: [R] need help for building R in Ubuntu 8.04

2008-05-25 Thread Marianne Promberger
On 05/25/08 12:12, Nitesh Agrawal wrote: Hi everyone I have been trying to build R in ubuntu 8.04 from its source code but am getting the following error. configure: error: --with-x=yes (default) and X11 headers/libs are not available Please help me and consider me a newbie in linux Is

[R] Need help for nlme

2008-05-25 Thread ctu
Hi everyone, I try to write a module based on nlme however R always shows me the error message Error in eval(expr, envir, enclos) : object y not found. Does anyone know how to solve this? There is no problem in nls at all. require(nlme) AMPmixed-function(y, x, S1=c(asymptotic,logistic),

[R] naming components of a list

2008-05-25 Thread joseph
Hi I have a character vector with thousands of names which looks like this: V=c(Fred, Mary, SAM) V [1] Fred Mary SAM class(V) [1] character I would like to change it to a list: L=as.list(V) L [[1]] [1] Fred [[2]] [1] Mary [[3]] [1] SAM but I need to name the components as name1, name2,

Re: [R] Emacs Bundle...

2008-05-25 Thread Peter Dalgaard
Atul Kulkarni wrote: Hi List, I remember someone mentioning a R-specific bundle of Emacs. Can you please post link again? Regards, Atul. By the teach a man to fish principle, http://www.r-project.org/search.html search for: emacs ess windows 2nd hit, 4th bullet from the end. -- O__

Re: [R] naming the components of a list

2008-05-25 Thread Rolf Turner
On 26/05/2008, at 7:54 AM, joseph wrote: Hi I have a character vector with thousands of names which looks like this: V=c(Fred, Mary, SAM) V [1] Fred Mary SAM class(V) [1] character I would like to change it to a list: L=as.list(V) L [[1]] [1] Fred [[2]] [1] Mary [[3]] [1] SAM but I

Re: [R] Need help for nlme

2008-05-25 Thread Andrew Robinson
My advice is to try to simplify this as much as possible. When it is as simple as possible, it will either work or not work. If it works, then you have learned something useful. If it does not work, then send your question again. Right now there is a great deal of detail that may or may not be

Re: [R] naming components of a list

2008-05-25 Thread Erin Hodgess
try this: names(L) - c(name1,name2,name3) L $name1 [1] Fred $name2 [1] Mary $name3 [1] SAM HTH, Sincerely, Erin On Sun, May 25, 2008 at 2:42 PM, joseph [EMAIL PROTECTED] wrote: Hi I have a character vector with thousands of names which looks like this: V=c(Fred, Mary, SAM) V [1]

[R] installing source package RGtk2 on mac os x 10.4.11

2008-05-25 Thread Corrado Giannasca
Dear All, I'm trying to install the source package RGtk2 (RGtk2_2.12.5-3.tar.gz) on a i-Mac running os x 10.4.11: Nome modello:iMac Identificatore modello: iMac6,1 Nome processore: Intel Core 2 Duo VelocitĂ  processore: 2.16 GHz Numero di processori:1

Re: [R] RSPerl OS X

2008-05-25 Thread DavidM.UK
Hi Duncan, That fix worked I tested it with plot.pl and test2.pl, but I think a similar problem is occurring with RGtk, which I need to install before I can use RGtkviewers which in turn I need before I install IDocs :) I'm hoping the combination of those modules will allow me to produce

Re: [R] R-Excel Macro Problem

2008-05-25 Thread nmarti
Yasir, I couldn't find your email address, I'm new to the forum. Here's the code, Sub Run_ModelT() Call Rinterface.StartRServer Call Rinterface.PutDataframe(DataSet, Range(Peram!A1:E2000)) Call Rinterface.RRun(attach(DataSett)) Call Rinterface.RRun(model - lm(Ch_Close_1 ~

Re: [R] R-Excel Macro Problem

2008-05-25 Thread Yasir Kaheil
glad to hear things worked out. y nmarti wrote: Ok, so I'm embarrassed to admit I made a really dumb mistake. My VBA page was declared as Sheet1 code when it should have been Module1 code. I knew it was something stupid. Sorry for the inconvenience. Yasir Kaheil wrote: hi Nate,

Re: [R] Solving 100th order equation

2008-05-25 Thread Rolf Turner
On 25/05/2008, at 1:10 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Oops! Actually spectacularly bad. I didn't see the positive exponent! Curiously, there appears to be just one bad apple: sort(Mod(p(z))) [1] 1.062855e-10 1.062855e-10 1.328999e-10 1.328999e-10 2.579625e-10 [6]

Re: [R] R-Excel Macro Problem

2008-05-25 Thread nmarti
Ok, so I'm embarrassed to admit I made a really dumb mistake. My VBA page was declared as Sheet1 code when it should have been Module1 code. I knew it was something stupid. Sorry for the inconvenience. Yasir Kaheil wrote: hi Nate, could you please email me your excel workbook. thanks y

Re: [R] nls diagnostics?

2008-05-25 Thread Katharine Mullen
Dear Spencer, I just saw your post. If the singular gradient happens during or after iteration one (that is, not at the initial estimates), then calling summary on the nls output would give standard error estimates on the parameters useful for diagnostics. You could also call

Re: [R] nls diagnostics?

2008-05-25 Thread Gabor Grothendieck
On Sun, May 25, 2008 at 9:32 PM, Katharine Mullen [EMAIL PROTECTED] wrote: Dear Spencer, I just saw your post. If the singular gradient happens during or after iteration one (that is, not at the initial estimates), then calling summary on the nls output would give standard error estimates

[R] Joining Histograms Into a Figure

2008-05-25 Thread Edward Wijaya
Hi, I have two histograms created separately using the following code. It creates two separate figures. dat - read.table(file=GDS1096.modelout, head = FALSE ) __BEGIN__ dat - read.table(file=GDS1096.modelout, head = FALSE ) hist(dat$V2, main=AIC Freq, xlab = \# Component, breaks = 36, xlim =