[R] For loop with if else statement

2007-09-05 Thread Monica Pisica
ue, 4 Sep 2007 15:59:54 +0200From: Hans Ole ?rka <[EMAIL PROTECTED]>Subject: [R] For loop with if else statementTo: "'r-help@stat.math.ethz.ch'" Message-ID:<[EMAIL PROTECTED]>Content-Type: text/plain; charset="iso-8859-1" Hi,I try to make a simple for

Re: [R] For loop with if else statement

2007-09-04 Thread Duncan Murdoch
On 9/4/2007 9:59 AM, Hans Ole Ørka wrote: > Hi, > I try to make a simple for loop with a if else statement (First example - > Below) and extend it to a more complex loop (Second example). However, my > results > > #First example: > x=c(1,2) > t=for(i in 1:length(x)){ > if (x==1){a=x+1}else > if

[R] For loop with if else statement

2007-09-04 Thread Hans Ole Ørka
Hi, I try to make a simple for loop with a if else statement (First example - Below) and extend it to a more complex loop (Second example). However, my results #First example: x=c(1,2) t=for(i in 1:length(x)){ if (x==1){a=x+1}else if (x==2){a=x} } Returned from R: Warning messages: 1: the condi

Re: [R] Sphericity test in R for repeated measures ANOVA

2007-08-20 Thread Peter Dalgaard
Orou Gaoue wrote: > Hi, > Is there a way to do a sphericity test in R for repeated measures ANOVA > (using aov or lme)? I can't find anything about it in the help. > Thanks > > Orou > There is for lm() with multivariate response (mauchly.test). For lme(), you can com

Re: [R] Sphericity test in R for repeated measures ANOVA

2007-08-20 Thread Simon Blomberg
ricity test in R for repeated measures ANOVA > (using aov or lme)? I can't find anything about it in the help. > Thanks > > Orou > > [[alternative HTML version deleted]] > > __ > R-help@stat.math.ethz.ch maili

[R] Sphericity test in R for repeated measures ANOVA

2007-08-20 Thread Orou Gaoue
Hi, Is there a way to do a sphericity test in R for repeated measures ANOVA (using aov or lme)? I can't find anything about it in the help. Thanks Orou [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list

Re: [R] for plots

2007-08-17 Thread Julian M Burgos
Hi Jim, You could also use the 'select' argument. For example, plot(gam.object,se=TRUE,select=1) will give you the smooth plot for the first variable. Be sure to read the documentation. See ?plot.gam for specifics details on plotting gam objects. Julian On Fri, 17 Aug 2007, Dieter Menne wr

Re: [R] for plots

2007-08-17 Thread S Ellison
?plot.gam or ?preplot.gam says there is an ask= option, slightly bizarrely set to F by default. If ask=T, You'll get a menu of options for plotting. In windows, hitting "Esc" will get you out of the menu. example: gam(Kyphosis ~ s(Age,4) + Number, family = binomial, data=kyphosis, trace=TRUE)

Re: [R] for plots

2007-08-16 Thread Dieter Menne
jim holtman gmail.com> writes: > > Turn 'Recording" on for the plots. > > windows(record=TRUE) > > or select from the GUI. > > I mean if the object has several plots how can I > get those? > > "gam.object <- gam(y ~ s(x,6) + z,data=gam.data) > > plot(gam.object,se=TRUE)" Or use something li

Re: [R] for plots

2007-08-16 Thread jim holtman
Turn 'Recording" on for the plots. windows(record=TRUE) or select from the GUI. On 8/17/07, Brad Zhang <[EMAIL PROTECTED]> wrote: > Hi, All, > > I am a beginner for R. Now I have installed R 2.5.1 in Window > environment. After I run a program such as "gam" I would like to display > a plot for t

[R] for plots

2007-08-16 Thread Brad Zhang
Hi, All, I am a beginner for R. Now I have installed R 2.5.1 in Window environment. After I run a program such as "gam" I would like to display a plot for the object. The following is an example. When I did this, only the last plot was presented on my screen. How can I get a plot before the last p

Re: [R] For loops

2007-07-26 Thread Patrick Burns
Any time you are calling a function one value at a time, it is worth asking if you can eliminate a loop (or more). If 'G.fun' is vectorized in its first argument, then you can easily get rid of the three inner loops. Just generate a vector of all of the values and do: gj <- sum(G.fun(long.vector

[R] For loops

2007-07-25 Thread Joaquim J. S. Ramalho
Hi, is there a way of simplifying the following code: G <- rep(NA,n) for(i in 1:n) { gj <- 0 for(j in 1:n) { for(l in 1:n) { for(m in 1:n) { gj <- gj+G.fun(XB[i]+p[3]*X[j,3]+p[4]*X[l,4]+p[5]*X[m,5],ff) } } } G[i] <- gj/n^3 } Thanks. Joaquim Santos _

Re: [R] using R for a reaction-time experiment

2007-07-23 Thread Greg Snow
f Of Seth Roberts > Sent: Sunday, July 22, 2007 10:38 AM > To: r-help@stat.math.ethz.ch > Subject: [R] using R for a reaction-time experiment > > > I want to use R to run a reaction-time experiment: Something > appears on the screen, I respond by typing something (one > ke

Re: [R] using R for a reaction-time experiment

2007-07-23 Thread Christophe Pallier
;. Alternatively, you might use "Rpy" to analyse the data. Christophe Pallier On 7/23/07, Mike Lawrence <[EMAIL PROTECTED]> wrote: > > Psych grad student here, R user for 3 years. Using R for experiments > is likely not advisable as it has no fine control of disp

Re: [R] using R for a reaction-time experiment

2007-07-23 Thread Mike Lawrence
Psych grad student here, R user for 3 years. Using R for experiments is likely not advisable as it has no fine control of display timing (ex synching stimuli to the screen refresh, etc). On recommendation of colleagues I'm learning the Python language, which has a module called &#

Re: [R] using R for a reaction-time experiment

2007-07-22 Thread Ioannis Dimakos
Have you tried DMDX instead of R? And then feed the reaction times collected by DMDX to R for manipulation? IKD === On Κυρ, Ιούλιος 22, 2007 20:55, Seth Roberts wrote: > > I'm using Windows XP unfortunately. > > > Ted.Harding wrote: >> >> On

Re: [R] using R for a reaction-time experiment

2007-07-22 Thread Seth Roberts
__ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal,

Re: [R] using R for a reaction-time experiment

2007-07-22 Thread Ted Harding
On 22-Jul-07 16:38:02, Seth Roberts wrote: > > I want to use R to run a reaction-time experiment: > Something appears on the screen, I respond by typing something > (one keystroke), the system measures the speed of my response. > R would be great for this if only I didn't have to hit Enter > to en

[R] using R for a reaction-time experiment

2007-07-22 Thread Seth Roberts
s now but they require two actions per trial: hit keystroke, hit Enter. Is there some way that R can be made to respond to a single keystroke (other than Enter)? -- View this message in context: http://www.nabble.com/using-R-for-a-reaction-time-experiment-tf4125643.html#a11732474 Sent from the R

Re: [R] for loop doesn't stop with upper loop value

2007-07-03 Thread Rolf Turner
On 4/07/2007, at 12:01 PM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: > Hi list, > > could anyone please educate me on the following: > > lst<-seq(47, 239, by=12) > > for(n in lst) > { > lower=n; upper=lower+10 >for(i in lower+2 : upper) >{ > print(paste(n, " i: ", i, " lower

Re: [R] for loop doesn't stop with upper loop value

2007-07-03 Thread Hong Ooi
2000 +61 (2) 9292 1566 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, 4 July 2007 10:01 AM To: r-help@stat.math.ethz.ch Subject: [R] for loop doesn't stop with upper loop value Hi list, could anyone please educate

[R] for loop doesn't stop with upper loop value

2007-07-03 Thread Alexander.Herr
Hi list, could anyone please educate me on the following: lst<-seq(47, 239, by=12) for(n in lst) { lower=n; upper=lower+10 for(i in lower+2 : upper) { print(paste(n, " i: ", i, " lower: ",lower, " upper :", upper)) } } does not stop when i = upper A while loop fixes this b

Re: [R] R for bioinformatics

2007-06-04 Thread Liaw, Andy
I suspect > > > > Peter, that wording does seem familiar, just cannot recall > where I saw > > it. Perhaps on the O'Reilly web site, where it is no longer listed. > > > > For confirmation, I called O'Reilly's customer service in > Cambridge, MA

Re: [R] New mailing list: R for psychology research

2007-05-15 Thread Gabor Grothendieck
There is a list of mailing lists here: https://stat.ethz.ch/mailman/listinfo On 5/15/07, Armin Goralczyk <[EMAIL PROTECTED]> wrote: > 2007/5/14, Andy Fugard <[EMAIL PROTECTED]>: > > Hello all, > > > > There's a new mailing list for researchers in psychology who are > > learning and using R. New

Re: [R] New mailing list: R for psychology research

2007-05-15 Thread Armin Goralczyk
2007/5/14, Andy Fugard <[EMAIL PROTECTED]>: > Hello all, > > There's a new mailing list for researchers in psychology who are > learning and using R. New users of R are especially welcome. > > Hi List Does anyone know if there is a special list for researchers in medicine using R? -- A. Goralcz

[R] New mailing list: R for psychology research

2007-05-14 Thread Andy Fugard
Hello all, There's a new mailing list for researchers in psychology who are learning and using R. New users of R are especially welcome. To join, venture to http://www.jiscmail.ac.uk/archives/psych-r.html and click "Join or leave the list (or change settings)" You can also peruse the

[R] for loops

2007-04-25 Thread [EMAIL PROTECTED]
Hello everybody I'm very new at using R so probably this is a very stupid question. I have a matrix of "p" columns and I have to calculate for each of them the "two sample t-statistic" and p-value and to save the results into two different vectors. I have divided my matrix into two submatrices: s

[R] BlueGene - Compile R for BGL?

2007-04-23 Thread Mike Hanby
Howdy, I was just wondering if anyone out there has compiled R to run on the IBM BlueGene, and if so, could they share their compilation options / configuration? Thanks, Mike [[alternative HTML version deleted]] __ R-help@stat.math.

[R] For Help in libm_c32.so for fortran

2007-04-23 Thread savita rai
Dear Sir I am running a script file for fortran but it showing error i.e. .sgb.x : /sbin/loader: Fatal Error : cannot map libm_c32.so here sgb.x is its output file that I have got after running make file. I have seached this library file inside /usr/shlib directory its not there. Please tel me

Re: [R] for loop help

2007-03-26 Thread Anthony Steven Dick
Thanks Adai. You can tell by the clumsiness of my script that I am new to R and to programming. After wrestling with it this morning, I found that the following worked best: pre.outliers<-subset(final.roi.df, gFDR4FWHM >= 1.96) detach(final.roi.df) attach(pre.outlie

Re: [R] for loop help

2007-03-25 Thread Adaikalavan Ramasamy
Try changing outliers <- subset(pre.outliers, gtvalue4FWHM >= 0.00) to w <- which( gtvalue4FWHM >= 0.00 ) outliers( length(w) > 0, pre.outliers[ w, ], NA ) Other comments: 1. Make sure you detach(data_gcs) at the end of the loops 2. scale() works on columns by default, so try

[R] for loop help

2007-03-25 Thread Anthony Steven Dick
Hello- I have a script which steps through a series of subjects, and for the subjects I remove outlying values. After removing these outliers, I specify a cutoff, keeping only values over a certain value (e.g., 1.96). I want to populate a matrix with a statistic of the values that make the cut

Re: [R] for loop in assigning column names

2007-03-21 Thread Dimitris Rizopoulos
er 35, Leuven, Belgium Tel: +32/(0)16/336899 Fax: +32/(0)16/337015 Web: http://med.kuleuven.be/biostat/ http://www.student.kuleuven.be/~m0390867/dimitris.htm - Original Message - From: "Luis Ridao Cruz" <[EMAIL PROTECTED]> To: Sent: Wednesday, March 21, 2007 4:14 PM

Re: [R] for loop in assigning column names

2007-03-21 Thread ONKELINX, Thierry
@stat.math.ethz.ch > Onderwerp: [R] for loop in assigning column names > > R-help, > > I have a data frame (df) and I want to add some columns whose > names should correspond to the "i" index in the loop below. > > for(i in 1:10) > { > df$eval(paste(&

[R] for loop in assigning column names

2007-03-21 Thread Luis Ridao Cruz
R-help, I have a data frame (df) and I want to add some columns whose names should correspond to the "i" index in the loop below. for(i in 1:10) { df$eval(paste("St", as.character(i), sep = "" )) <- ObJeCt[i] } An error message comes out : "Error: attempt to apply non-function" How can I

[R] online course - Using R for Basic Statistics

2007-03-16 Thread Peter Bruce
oops! I gave the wrong link - the correct one is http://www.statistics.com/courses/Rstatistics/ pb Dr. John Verzani will present his online course, "Using R for Introductory Statistics" April 6 - May 4 at statistics.com. Participants can ask questions and exchange commen

[R] online course - Using R for Basic Statistics

2007-03-16 Thread Peter Bruce
Dr. John Verzani will present his online course, "Using R for Introductory Statistics" April 6 - May 4 at statistics.com. Participants can ask questions and exchange comments with Dr. Verzani via a private discussion board throughout the period. This course covers the use of R to

Re: [R] R for copying and pasting selected image files?

2007-03-12 Thread Paul Hiemstra
ke to select certain files and copy only > the selected files to another directory. > > The files are images and there is no need, actually no desire, to > open them. Is there a way to use R for copying and pasting files with > any file extension to another directory without openi

Re: [R] R for copying and pasting selected image files?

2007-03-12 Thread Duncan Murdoch
; the selected files to another directory. > > The files are images and there is no need, actually no desire, to > open them. Is there a way to use R for copying and pasting files with > any file extension to another directory without opening them? > > Thanks already for any help,

Re: [R] R for copying and pasting selected image files?

2007-03-12 Thread Robert Baer
gt; To: Sent: Monday, March 12, 2007 8:33 AM Subject: [R] R for copying and pasting selected image files? > Hello, > > I would like to use R to process a list of text strings. The text > strings are filenames, encoding experimental settings. Based on the > information in there I'd l

Re: [R] R for copying and pasting selected image files?

2007-03-12 Thread Romain Francois
ther directory. > > The files are images and there is no need, actually no desire, to > open them. Is there a way to use R for copying and pasting files with > any file extension to another directory without opening them? > > Thanks already for any help, > > Kim > &g

[R] R for copying and pasting selected image files?

2007-03-12 Thread Kim Milferstedt
need, actually no desire, to open them. Is there a way to use R for copying and pasting files with any file extension to another directory without opening them? Thanks already for any help, Kim __ Kim Milferstedt University of Illinois at Urbana-Cham

Re: [R] Using R for devices trial

2007-03-02 Thread Cody_Hamilton
Mat, Thank you for the update and for the link. I look forward to (hopefully) using R for future FDA submissions. Regards, -Cody "Soukup

[R] Using R for devices trial

2007-03-02 Thread Cody_Hamilton
Mat, Thank you for the update and for the link. I look forward to (hopefully) using R for future FDA submissions. Regards, -Cody "Soukup

Re: [R] Using R for devices trial

2007-03-02 Thread Soukup, Mat
" software tool. Specifically, 1. R was granted approval by our IT folks for use on our government PC's (2 years in the making to get this). 2. An R course is in development for FDA reviewers to use R for review of clinical trial data. 3. This Monday at the 1st FDA/DIA Spring Meeting I wi

[R] Using R for devices trial

2007-03-01 Thread Cody_Hamilton
I would like to use R for submissions to FDA/CDRH (the medical device company I work for currently uses only SAS). Previous postings to the list regarding R and 21 CFR 11 compliance have been very helpful. However, reluctance to using open source software for statistical analyses and reporting

Re: [R] Packages in R for least median squares regression a nd computing outliers (thompson tau technique etc. )

2007-02-28 Thread D L McArthur
lalitha viswanath yahoo.com> writes: > > Hi > I am looking for suitable packages in R that do > regression analyses using least median squares method > (or better). Additionally, I am also looking for > packages that implement algorithms/methods for > detecting outliers that can be discarded befo

Re: [R] Packages in R for least median squares regression and computing outliers (thompson tau technique etc.)

2007-02-28 Thread roger koenker
It's not often one gets needs to correct Gabor, but no, least median of squares is not the same as least absolute error regression. Take a look at the package robust if you want the lms. url:www.econ.uiuc.edu/~rogerRoger Koenker email[EMAIL PROTECTED]Depar

Re: [R] Packages in R for least median squares regression and computing outliers (thompson tau technique etc.)

2007-02-28 Thread Gabor Grothendieck
Try rq in quantreg using the default value for tau. On 2/28/07, lalitha viswanath <[EMAIL PROTECTED]> wrote: > Hi > I am looking for suitable packages in R that do > regression analyses using least median squares method > (or better). Additionally, I am also looking for > packages that implement a

Re: [R] Packages in R for least median squares regression and computingoutliers (thompson tau technique etc.)

2007-02-28 Thread Bert Gunter
: Wednesday, February 28, 2007 10:04 AM To: r-help@stat.math.ethz.ch Subject: [R] Packages in R for least median squares regression and computingoutliers (thompson tau technique etc.) Hi I am looking for suitable packages in R that do regression analyses using least median squares method (or better

[R] Packages in R for least median squares regression and computing outliers (thompson tau technique etc.)

2007-02-28 Thread lalitha viswanath
Hi I am looking for suitable packages in R that do regression analyses using least median squares method (or better). Additionally, I am also looking for packages that implement algorithms/methods for detecting outliers that can be discarded before doing the regression analyses. Although some webs

[R] Stop Execution of R for sometime

2007-02-09 Thread Shubha Vishwanath Karanth
similar to Sys.sleep() which haults the execution of R for sometime? Thank you, Shubha [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] R for bioinformatics

2007-02-02 Thread Benoit Ballester
ording does seem familiar, just cannot recall where I saw > it. Perhaps on the O'Reilly web site, where it is no longer listed. > > For confirmation, I called O'Reilly's customer service in Cambridge, MA. > They confirm that the book was indeed cancelled and never published.

Re: [R] R for bioinformatics

2007-02-01 Thread Marc Schwartz
On Thu, 2007-02-01 at 21:32 +0100, Peter Dalgaard wrote: > Marc Schwartz wrote: > > On Thu, 2007-02-01 at 10:45 -0800, Seth Falcon wrote: > > > >> Benoit Ballester <[EMAIL PROTECTED]> writes: > >> > >> > >>> Hi, > >>> > >>> I was wondering if someone could tell me more about this book, (if

Re: [R] R for bioinformatics

2007-02-01 Thread Peter Dalgaard
Marc Schwartz wrote: > On Thu, 2007-02-01 at 10:45 -0800, Seth Falcon wrote: > >> Benoit Ballester <[EMAIL PROTECTED]> writes: >> >> >>> Hi, >>> >>> I was wondering if someone could tell me more about this book, (if it's >>> a good or bad one). >>> I can't find it, as it seems that O'Reill

Re: [R] R for bioinformatics

2007-02-01 Thread Marc Schwartz
On Thu, 2007-02-01 at 10:45 -0800, Seth Falcon wrote: > Benoit Ballester <[EMAIL PROTECTED]> writes: > > > Hi, > > > > I was wondering if someone could tell me more about this book, (if it's > > a good or bad one). > > I can't find it, as it seems that O'Reilly doesn't publish any more. > > I've

Re: [R] R for bioinformatics

2007-02-01 Thread Seth Falcon
Benoit Ballester <[EMAIL PROTECTED]> writes: > Hi, > > I was wondering if someone could tell me more about this book, (if it's > a good or bad one). > I can't find it, as it seems that O'Reilly doesn't publish any more. I've never seen a copy so I can't comment about its quality (has anyone seen

[R] R for bioinformatics

2007-02-01 Thread Benoit Ballester
Hi, I was wondering if someone could tell me more about this book, (if it's a good or bad one). I can't find it, as it seems that O'Reilly doesn't publish any more. Thanks, Ben -- Benoit Ballester __ R-help@stat.math.ethz.ch mailing list https://s

Re: [R] R for SAS & SPSS Users Document

2007-01-31 Thread Muenchen, Robert A (Bob)
cc, News: http://listserv.utk.edu/archives/statnews.html = -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Julien Barnier Sent: Wednesday, January 31, 2007 3:20 AM To: r-help@stat.math.ethz.ch Subject: Re: [R] R for SAS & SPSS Users Docu

Re: [R] R for SAS & SPSS Users Document

2007-01-31 Thread Julien Barnier
Hi, > I am pleased to announce the availability of the document, "R for SAS > and SPSS Users", at > http://oit.utk.edu/scc/RforSAS&SPSSusers.doc I've looked at the document and printed it. I think it will be very useful to me, even if I will use it "the reverse

Re: [R] Problem with "readline" in compilatio of R for Solaris 11 (Nevada) in x86

2007-01-29 Thread Prof Brian Ripley
Please consult the R-admin manual, as the INSTALL file asked you to. It explains this. On Mon, 29 Jan 2007, Octavio Tourinho wrote: > Dear friends, > In configuring R 2.4.1 for Solaris 11, using SunStudio 11 compilers, I > get the following error. > > checking readline/history.h usability... no >

[R] R for SAS & SPSS Users Document

2007-01-29 Thread Muenchen, Robert A (Bob)
Greetings, I am pleased to announce the availability of the document, "R for SAS and SPSS Users", at http://oit.utk.edu/scc/RforSAS&SPSSusers.doc . It presents an introductory view of R for people who already know SAS and/or SPSS. Included are 27 programs written in all three lang

[R] Problem with "readline" in compilatio of R for Solaris 11 (Nevada) in x86

2007-01-29 Thread Octavio Tourinho
Dear friends, In configuring R 2.4.1 for Solaris 11, using SunStudio 11 compilers, I get the following error. checking readline/history.h usability... no checking readline/history.h presence... no checking for readline/history.h... no checking readline/readline.h usability... no checking readlin

Re: [R] for loop problem

2007-01-21 Thread Prof Brian Ripley
On Sun, 21 Jan 2007, Uwe Ligges wrote: > aat wrote: >> Hello R users, >> >> A beginners question which I could not find the answer to in earler posts. >> >> My thought process: >> Here "z" is a 119 x 15 data matrix >> Step 1: start at column one, bind every column with column 1 >> Step2: use the n

Re: [R] for loop problem

2007-01-21 Thread Uwe Ligges
aat wrote: > Hello R users, > > A beginners question which I could not find the answer to in earler posts. > > My thought process: > Here "z" is a 119 x 15 data matrix > Step 1: start at column one, bind every column with column 1 > Step2: use the new matrix, "test", in the fitCopula package >

[R] for loop problem

2007-01-20 Thread aat
Hello R users, A beginners question which I could not find the answer to in earler posts. My thought process: Here "z" is a 119 x 15 data matrix Step 1: start at column one, bind every column with column 1 Step2: use the new matrix, "test", in the fitCopula package Step3: store each result in my

Re: [R] R for Reuters

2006-12-29 Thread ahmad ajakh
thz.ch Sent: Friday, December 29, 2006 3:44:01 AM Subject: [R] R for Reuters Can we download data of Reuters from R? Just like we have RBloomberg, do we have something like RReuters? Is this under the developing stage? [[alternative HTML version d

[R] R for Reuters

2006-12-29 Thread Shubha Vishwanath Karanth
Can we download data of Reuters from R? Just like we have RBloomberg, do we have something like RReuters? Is this under the developing stage? [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mai

Re: [R] using R for survival analysis

2006-12-05 Thread Thomas Lumley
On Tue, 5 Dec 2006, Michael McCulloch wrote: > Thank you to all who made very helpful suggestions to get started with R. > Duncan Murdoch raised an excellent question, asking about my background and > reason for using R. I'm an epidemiologist, applying the marginal structural > models approach (in

[R] using R for survival analysis

2006-12-05 Thread Michael McCulloch
Thank you to all who made very helpful suggestions to get started with R. Duncan Murdoch raised an excellent question, asking about my background and reason for using R. I'm an epidemiologist, applying the marginal structural models approach (inverse probability of treatment weights) in a Cox p

Re: [R] How to set up R for Macbook Pro Intel Core Duo

2006-11-17 Thread Marc Schwartz
On Fri, 2006-11-17 at 03:57 -0800, Tobias wrote: > I just recently purchased a Macbook Pro, Intel Core Duo 2GHz, 512 MB RAM. > > After looking through several articles in this forum I found the link to the > R Mac Wiki. I am not that tech-savy but it appeared to me that this link, > > http://wik

[R] How to set up R for Macbook Pro Intel Core Duo

2006-11-17 Thread Tobias
someone please advice whether I should go through the Wiki article to set up R or whether it already had been set up properly through the universal binary package? Many thanks Tobias -- View this message in context: http://www.nabble.com/How-to-set-up-R-for-Macbook-Pro-Intel-Core-Duo-tf2651081

Re: [R] For MacBook, best way to do R?

2006-11-14 Thread Ricardo Rodríguez - Your EPEC ICT Team
>>> Thomas Adams<[EMAIL PROTECTED]> 14/11/2006 13:27 >>> > I'm getting a MacBook and I'd like to stick with OS X rather than > convert it to Linux just yet. > > However, my main concern is having decent performance. > > What's my best option: > > *use the existing binary for R? > > *compile R fres

Re: [R] For MacBook, best way to do R?

2006-11-14 Thread Thomas Adams
Mitchell, I have been using R on a variety of Macs for a couple of years with no problems. The R aqua interface is very good and I see no compelling reason to not use the precompiled binaries. Regards, Tom Mitchell Maltenfort wrote: > I'm getting a MacBook and I'd like to stick with OS X rathe

Re: [R] For MacBook, best way to do R?

2006-11-13 Thread Lanre Okusanya
Running R using the precomplied binary works really well and you should have no issues. Unless you really know what you are doing compiling R to work on a mac from sctrach can be at the very least tedious, at most, daunting, and there is really no point in doing so, since the binary already takes c

[R] For MacBook, best way to do R?

2006-11-13 Thread Mitchell Maltenfort
I'm getting a MacBook and I'd like to stick with OS X rather than convert it to Linux just yet. However, my main concern is having decent performance. What's my best option: *use the existing binary for R? *compile R fresh under OS X? * install Linux and run R under that? Does anyone have any

Re: [R] for importing "data"

2006-10-30 Thread Hans-Peter
Hi, > *I had an Excel file, then I turned it into a "tab-delimited" file, as > ... > lahore<-read.delim("lahore.txt") I suppose you are on windows, hence you can use the package xlsReadWrite to read the Excelfile directly. It's on the CRAN and you can download it from the RGui under the menu: Pa

Re: [R] for importing "data"

2006-10-30 Thread Roger Bivand
On Mon, 30 Oct 2006, amna khan wrote: > *I am a very new user of R. I've spent several hours trying to import > data, so I feel okay asking the list for help. * > *I had an Excel file, then I turned it into a "tab-delimited" file, as > instructed by directions My > filename is "lahore.txt" I amus

Re: [R] for importing "data"

2006-10-30 Thread David Barron
Most likely the file lahore.txt isn't in the current working directory, which is where R will be looking for it as you don't specify a path (I'm assuming that you are working in Windows). If so, you have three options. 1) Move lahore.txt to the current working directory (you can find with directo

Re: [R] for importing "data"

2006-10-30 Thread Gabor Grothendieck
Move to the appropriate directory first (or else move your file to where you are now). For example, 1. if the file is in \ then setwd("/") 2. or getwd() which shows where you are now and then you can move your file to that spot. 3. Another possibility is: read.delim(file.choose())

[R] for importing "data"

2006-10-30 Thread amna khan
*I am a very new user of R. I've spent several hours trying to import data, so I feel okay asking the list for help. * *I had an Excel file, then I turned it into a "tab-delimited" file, as instructed by directions My filename is "lahore.txt" I amusing the following commands for read.delim but i a

Re: [R] for help

2006-10-24 Thread Petr Pikal
Hi On 24 Oct 2006 at 10:03, Aimin Yan wrote: Date sent: Tue, 24 Oct 2006 10:03:08 -0500 To: r-help@stat.math.ethz.ch From: Aimin Yan <[EMAIL PROTECTED]> Subject: [R] for help > I have a question in R. > >

Re: [R] for help

2006-10-24 Thread Charles C. Berry
This question (paraphrase: How do I process a lot of homologous files?) or something similar has been asked (and answered) a lot lately. For example, look at this thread from today's posting to r-help: http://news.gmane.org/find-root.php?group=gmane.comp.lang.r.general&article=72254 Chuck p.

[R] for help

2006-10-24 Thread Aimin Yan
I have a question in R. In directory H:/Delta_angle I have 19 files like this: ALA.delta ASN.delta ASP.delta CYS.delta GLN.delta GLU.delta HIS.delta ILE.delta LEU.delta LYS.delta MET.delta PHE.delta PRO.delta SER.delta THR.delta TRP.delta TYR.delta VAL.delta I want to read these files to 19 data

Re: [R] Suitability of R for Algorithm simulations

2006-10-22 Thread François Pinard
Hi, people. A correspondent puts me in front of a reply I sent to r-help, a few weeks ago, and quoted below. I should have been tired when I sent it. Please replace "Eiffel" by "Erlang" all over. Sorry for this error. Date: 2006-10-05 00:43:36 Message-ID: [EMAIL PROTECTED] [Ethan B. Fin

Re: [R] for loop not working in function

2006-10-11 Thread David Barron
gt; Any pointers to resources for learning to write functions in R for > neophyte programmers? Thanks. --Dale > > > boxcox <- function(x,min,max,step) { > lambda <- seq(min,max,step) > s <- length(lambda) > for (lambda in 1:s) > n <- nrow(x) > if(lambda ==0) xL &

Re: [R] for loop not working in function

2006-10-11 Thread Petr Pikal
ED]> To: r-help@stat.math.ethz.ch Subject:[R] for loop not working in function > I'm trying to write a small function (below) to compute Box & Cox > transformations of x for arbitrary values of lambda. I'd like to > specify a range of

Re: [R] for loop not working in function

2006-10-11 Thread Prof Brian Ripley
lambda xLbar <- mean(xL) t1 <- (-n/2)* log((1/n)*sum((xL - xLbar)^2)) t2 <- (lambda - 1)*sum(log(x)) res[i] <- t1 + t2 } names(res) <- all_lambda res } > Any pointers to resources for learning to write functions in R

[R] for loop not working in function

2006-10-10 Thread Dale Steele
or learning to write functions in R for neophyte programmers? Thanks. --Dale boxcox <- function(x,min,max,step) { lambda <- seq(min,max,step) s <- length(lambda) for (lambda in 1:s) n <- nrow(x) if(lambda ==0) xL <- log(x) else xL <- ((x^lambda) - 1)/lambda xLbar <- mean(

Re: [R] Suitability of R for Algorithm simulations

2006-10-04 Thread François Pinard
[Ethan B. Fini] > I would like to be able to instantiate an object for each node in my > simulated (stand alone, one computer) "distributed" environment and > then proceed by (a) adding message exchange functionality and (b) > algorithm behavior to each node. Not so long ago, I quickly glan

[R] Suitability of R for Algorithm simulations

2006-10-04 Thread Ethan B. Fini
Greetings, Sorry for the basic question, but I am trying to find out if R is a suitable platform for what I want to do... I am interested in creating simulations of distributed algorithms (i.e. team formation, Byzantine Generals , P2P communication modeling, mobile networks) that would be

Re: [R] Building R for Windows with ATLAS

2006-09-26 Thread Prof Brian Ripley
On Tue, 26 Sep 2006, Giuseppe Antonaci wrote: > I think this is not a R-devel question. Sorry to all if I'm wrong, > please let me know. In what sense is this not a programming question? > I managed to build R successfully with the default BLAS but when I > change the MKRULES to use ATLAS BLAS a

[R] Building R for Windows with ATLAS

2006-09-26 Thread Giuseppe Antonaci
I think this is not a R-devel question. Sorry to all if I'm wrong, please let me know. I managed to build R successfully with the default BLAS but when I change the MKRULES to use ATLAS BLAS and set the path to "C:/cygwin/home/Administrador/ATLAS/lib/WinNT_ATHLONSSE2" I got the following error mes

Re: [R] for() loop question

2006-08-26 Thread Wensui Liu
Thank you so much Marc. Your solution is exactly what I am looking for. Have a nice weekend. wensui On 8/26/06, Marc Schwartz <[EMAIL PROTECTED]> wrote: > On Sat, 2006-08-26 at 13:06 -0400, Wensui Liu wrote: > > Dear Lister, > > > > If I have a list of number, say x<-c(0.1, 0.5, 0.6...), how to

Re: [R] for() loop question

2006-08-26 Thread MARK LEEDS
let us know what you want to do because the beauty of R is that, in many cases, you may not have to loop. - Original Message - From: "Wensui Liu" <[EMAIL PROTECTED]> To: Sent: Saturday, August 26, 2006 1:06 PM Subject: [R] for() loop question > Dear Lister, >

Re: [R] for() loop question

2006-08-26 Thread Marc Schwartz
On Sat, 2006-08-26 at 13:06 -0400, Wensui Liu wrote: > Dear Lister, > > If I have a list of number, say x<-c(0.1, 0.5, 0.6...), how to use a for() > to loop through each number in x one by one? > > Thank you so much! > > wensui Two options: x <- c(0.1, 0.5, 0.6) > for (i in x) {print (i)} [1]

[R] for() loop question

2006-08-26 Thread Wensui Liu
Dear Lister, If I have a list of number, say x<-c(0.1, 0.5, 0.6...), how to use a for() to loop through each number in x one by one? Thank you so much! wensui [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https

Re: [R] Pseudo R for Quant Reg

2006-08-02 Thread roger koenker
This is getting to be a faq -- here is a prior answer: > No, but the objective function can be computed for any fitted > rq object, say f, as > > rho <- function(u,tau=.5)u*(tau - (u < 0)) > V <- sum(rho(f$resid, f$tau)) > > so it is easy to roll your own I don't much like R1, or

[R] Pseudo R for Quant Reg

2006-08-02 Thread ricardosilva
Dear R Users, Did someone implemented the R1 (Pseudo R-2) and likelihood ratio statistics for quantile regressions, which are some of the inference procedures for quantile regression found in Koenker and Machado (1999)? I tried the Ox version, but my dataset is too large (> 50.000) and the al

  1   2   3   4   >