Re: [R] Joining Histograms Into a Figure

2008-05-25 Thread Dieter Menne
Edward Wijaya gmail.com> writes: > > 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, m

[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,

[R] does nnet package already have normalization function??

2008-05-25 Thread Handayani Situmorang
Hi.. I'm trying to build a model with neural network through nnet package. I'm just wondering, if there normalization procedure in this package? i must normalize my data with my own code outside this package? Thank you before Handa - Kunjungi halaman dep

Re: [R] nls diagnostics?

2008-05-25 Thread Spencer Graves
Hi, Gabor: Thanks very much. Spencer Gabor Grothendieck wrote: 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 cal

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 est

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 chol2inv(xx$m$Rmat(

[R] plotting bootstrapped confidence intervals regression

2008-05-25 Thread Geertje van der Heijden
Hi all, I have done a simple linear regression and have calculated bootstrapped confidence intervals for the intercept and the slope using the boot package - i.e with the boot.ci command. I want to plot my regression line and confidence intervals, but here is where I am a bit stuck. Can anyone po

Re: [R] naming components of a list

2008-05-25 Thread Duncan Mackay
If there is a lot of names perhaps sprintf(format, 1:length(L), sep="") where format is the appropriate format for sprintf so that it is easier to read Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England ARMIDALE NSW 2351 Email [EMAIL PROTECTED] Home [EMAIL

Re: [R] Solving 100th order equation

2008-05-25 Thread Rolf Turner
On 26/05/2008, at 10:38 AM, Hans W. Borchers wrote: Rolf Turner auckland.ac.nz> writes: [...] However uniroot(p,c(1.995,2.005)) gives $root [1] 1.93 $f.root [1] -4.570875e+24 Whoops! I read that e+24 as e-24, so scrub all that

Re: [R] Solving 100th order equation

2008-05-25 Thread Hans W. Borchers
Rolf Turner auckland.ac.nz> writes: > > [...] > > However uniroot(p,c(1.995,2.005)) gives > > $root > [1] 1.93 > > $f.root > [1] -4.570875e+24 > > $iter > [1] 4 > > $estim.prec > [1] 6.103516e-05 > > What a difference 7.2

Re: [R] naming components of a list

2008-05-25 Thread N. Lapidus
And if you have "thousands of names" like this: names(L) <- paste ("names", 1:length(L), sep="") Nael On Sun, May 25, 2008 at 10:38 PM, Erin Hodgess <[EMAIL PROTECTED]> wrote: > try this: > > > names(L) <- c("name1","name2","name3") > > L > $name1 > [1] "Fred" > > $name2 > [1] "Mary" > > $name3

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. than

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

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:

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

[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 Nu

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 interact

Re: [R] Emacs Bundle...

2008-05-25 Thread Daniel Nordlund
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Peter Dalgaard > Sent: Sunday, May 25, 2008 1:18 PM > To: Atul Kulkarni > Cc: R-help@r-project.org > Subject: Re: [R] Emacs Bundle... > > Atul Kulkarni wrote: > > Hi List, > > > > I remember someone m

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"

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 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]]

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__

[R] naming the 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 compone

[R] Emacs Bundle...

2008-05-25 Thread Atul Kulkarni
Hi List, I remember someone mentioning a R-specific bundle of Emacs. Can you please post link again? Regards, Atul. -- Atul S. Kulkarni Graduate Student, Department of Computer Science, University Of Minnesota, Duluth, MN 55812. www.d.umn.edu/~kulka053 --

[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 compone

[R] n Realizations of a Stochastic Process assigned to dynamically generated variable names?

2008-05-25 Thread Vishal Belsare
I am interested in creating multiple (say 1000) time series, from a given stochastic process, of length 250. I want to refer to each realization with its own variable name, of the format say, tsn, where n is the n'th simulation. i.e. ts1, ts2, ts3, ts4, , ts1000 The way I am thinking of doing

[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"

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 lin

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

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

2008-05-25 Thread Dirk Eddelbuettel
On Sun, May 25, 2008 at 12:12:56PM -0600, 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 cons

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

2008-05-25 Thread Roland Rau
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 X11 headers/libs are not available I am currently sitting in front of a Windows machine but I built R on m

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

2008-05-25 Thread hadley wickham
> BTW, although I didn't read it carefully, the your web-page description of a > main effect in the presence of an interaction appears to imply that this > averages across all individuals, when in fact it averages across the levels > of the other factor; the result is different when there are unequ

[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 version

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

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 rep

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 differe

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 file

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 a

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 pac

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 > http://ess.r-proj

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

2008-05-25 Thread Bertolt Meyer
Hello, I have a problem with selecting the right type of sums of squares for an ANCOVA for my specific experimental data and hypotheses. I do have a basic understanding of the differences between Type-I, II, and III SSs, have read about the principle of marginality, and read Venable's "Exegeses o

Re: [R] Vector Product question

2008-05-25 Thread Dimitris Rizopoulos
try this: x <- c(3, 3, 1) y <- c("x","h","y") paste(rep(y, x), unlist(sapply(x, seq_len)), sep = "") I hope it helps. Best, Dimitris Dimitris Rizopoulos Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/(0)1

[R] Configuring emacs/ess on Ubuntu

2008-05-25 Thread Wade Wall
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 Xemacs in Windows (John Fox's guide). I installed ess as directed at http://ess.r-project.org/Manual/ . Under Windows I could use Emacs/ess fin

[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","h

[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,

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.

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': Application

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 Almei