Re: [R] SAS VS R - What type of analysis is better?

2014-06-06 Thread Frank Harrell
I can't think of an example where R does not work better than SAS except for a few cases of mixed effects regression models and for processing enormous datasets when the R user does not want to learn about the latest R tools for large datasets. I quit using SAS in 1991 (in favor of S-Plus and

Re: [R] SAS VS R - What type of analysis is better?

2014-06-06 Thread Frede Aakmann Tøgersen
Dato:06/06/2014 14.43 (GMT+01:00) Til: RHELP Emne: Re: [R] SAS VS R - What type of analysis is better? I can't think of an example where R does not work better than SAS except for a few cases of mixed effects regression models and for processing enormous datasets when the R user does not want

Re: [R] SAS VS R - What type of analysis is better?

2014-06-06 Thread Bert Gunter
Fra: Frank Harrell Dato:06/06/2014 14.43 (GMT+01:00) Til: RHELP Emne: Re: [R] SAS VS R - What type of analysis is better? I can't think of an example where R does not work better than SAS except for a few cases of mixed effects regression models and for processing enormous datasets

Re: [R] SAS and R complement each other

2013-03-04 Thread Rolf Turner
I never saw the original note nor its resubmission. Nor could I find it in the R-help archives. Is it just me? Not that it really matters a damn --- I don't use SAS either --- I'm just curious, and find the situation mysterious. cheers, Rolf On 03/04/2013 04:32 PM, Frank

Re: [R] SAS and R complement each other

2013-03-04 Thread Ista Zahn
On Mon, Mar 4, 2013 at 2:57 PM, Rolf Turner rolf.tur...@xtra.co.nz wrote: I never saw the original note nor its resubmission. Nor could I find it in the R-help archives. Is it just me? No, same here. Not that it really matters a damn --- I don't use SAS either --- I'm just curious, and

Re: [R] SAS and R complement each other

2013-03-04 Thread Milan Bouchet-Valat
. A link to Nabble was at the end of Frank's reply: http://r.789695.n4.nabble.com/SAS-and-R-complement-each-other-tp4660157p4660190.html Probably not worth a read, though (especially because the message only talks about... SAS, not R). Regards On 03/04/2013 04:32 PM, Frank Harrell wrote: I'm

Re: [R] SAS and R complement each other

2013-03-04 Thread Peter Ehlers
On 2013-03-04 12:04, Ista Zahn wrote: On Mon, Mar 4, 2013 at 2:57 PM, Rolf Turner rolf.tur...@xtra.co.nz wrote: I never saw the original note nor its resubmission. Nor could I find it in the R-help archives. Is it just me? No, same here. Think Nabble!!! (where there are often waits for

Re: [R] SAS and R complement each other

2013-03-04 Thread David Winsemius
On Mar 4, 2013, at 12:18 PM, Peter Ehlers wrote: On 2013-03-04 12:04, Ista Zahn wrote: On Mon, Mar 4, 2013 at 2:57 PM, Rolf Turner rolf.tur...@xtra.co.nz wrote: I never saw the original note nor its resubmission. Nor could I find it in the R-help archives. Is it just me? No, same

Re: [R] SAS and R complement each other

2013-03-04 Thread Peter Ehlers
On 2013-03-04 12:30, David Winsemius wrote: On Mar 4, 2013, at 12:18 PM, Peter Ehlers wrote: On 2013-03-04 12:04, Ista Zahn wrote: On Mon, Mar 4, 2013 at 2:57 PM, Rolf Turner rolf.tur...@xtra.co.nz wrote: I never saw the original note nor its resubmission. Nor could I find it in the

Re: [R] SAS and R complement each other

2013-03-03 Thread Frank Harrell
, Vanderbilt University -- View this message in context: http://r.789695.n4.nabble.com/SAS-and-R-complement-each-other-tp4660157p4660190.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

[R] SAS to R: I would like to replicate a statistical analysis performed in SAS in R.

2011-11-30 Thread Marianne Stephan
Hello everybody, A statistician performed an analysis in SAS for me which I would like to replicate in R. I have however problems in figuring out the R code to do that. As I understood it was a covariance regression model. In the analysis, baseline was used as covariate and autoregressive

Re: [R] SAS to R: I would like to replicate a statistical analysis performed in SAS in R.

2011-11-30 Thread Ben Bolker
Marianne Stephan mariannestephan at hotmail.com writes: A statistician performed an analysis in SAS for me which I would like to replicate in R. I have however problems in figuring out the R code to do that. As I understood it was a covariance regression model. In the analysis, baseline was

[R] Sas to R

2010-09-15 Thread Sarah Jilani
Hi, I need to call an R program from Sas. I have tried using the following code in Sas using the x command but it just calls up dos and says 'D:\Program' is not recognized as an internal or external command, operable program or batch file. ] SAS CODE: options xwait xsync; %let Rsource=S

Re: [R] Sas to R

2010-09-15 Thread Erik Iverson
Sarah, This is a SAS question, not R. However, it seems clear that it has something to do with the fact that there are spaces in the command that you're sending to Windows. Maybe try calling with the 'short directory name' notation, I forget what that's called in Windows. Or else follow-up

Re: [R] Sas to R

2010-09-15 Thread Erik Iverson
David Winsemius wrote: On Sep 15, 2010, at 1:44 PM, Sarah Jilani wrote: Hi, I need to call an R program from Sas. I have tried using the following code in Sas using the x command but it just calls up dos and says I went searching for a worked example and found this: http

Re: [R] Sas to R

2010-09-15 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of Sarah Jilani Sent: Wednesday, September 15, 2010 10:44 AM To: r-help@r-project.org Subject: [R] Sas to R Hi, I need to call an R program from Sas. I have tried using

Re: [R] Sas to R

2010-09-15 Thread Joshua Wiley
run from the Windows command prompt: %PROGRAMFILES%/R/R-2.11.1/bin/R.exe CMD BATCH C:/myscript.R C:/results.txt Cheers, Josh On Wed, Sep 15, 2010 at 10:44 AM, Sarah Jilani sarahjil...@gmail.com wrote: Hi, I need to call an R program from Sas. I have tried using the following code in Sas using

Re: [R] Sas to R

2010-09-15 Thread Sarah Jilani
is an example run from the Windows command prompt: %PROGRAMFILES%/R/R-2.11.1/bin/R.exe CMD BATCH C:/myscript.R C:/results.txt Cheers, Josh On Wed, Sep 15, 2010 at 10:44 AM, Sarah Jilani sarahjil...@gmail.com wrote: Hi, I need to call an R program from Sas. I have tried using the following

[R] SAS to R

2010-07-12 Thread trekvana
; === so far i think it is gls(weight~day,corr=corSymm(???),method=REML,data=small) my main problem is I dont know how to get the unstructured covariance matrix to work Thank you -- View this message in context: http://r.789695.n4.nabble.com/SAS-to-R-tp2286695p2286695.html Sent

Re: [R] SAS for R-users

2010-05-23 Thread Thomas Levine
, “SAS for R Users.” That’ll be the day!' Heh! I quite agree. I've had a few people write me saying they had used my book R for SAS and SPSS Users to learn SAS, but I certainly didn't aim for that when writing it. For R programmers wanting to learn SAS, here's what I recommend: 1. Read the text

Re: [R] SAS for R-users

2010-05-15 Thread Muenchen, Robert A (Bob)
Thomas Levine wrote: Bob Muenchen says that 'Ralph O’Brien says that in a few years there will be so many students graduating knowing mainly R that [he]’ll need to write, “SAS for R Users.” That’ll be the day!' Heh! I quite agree. I've had a few people write me saying they had used my book R

[R] SAS for R-users

2010-05-14 Thread Thomas Levine
There are loads of resources for users of any other statistics package who are learning R. For example http://www.google.com/search?q=r+for+sas-users; The reverse isn't the case http://www.google.com/search?q=sas+for+r-users; Having heard rumors of how unelegant other statistics packages

Re: [R] SAS for R-users

2010-05-14 Thread Erik Iverson
Thomas Levine wrote: There are loads of resources for users of any other statistics package who are learning R. For example http://www.google.com/search?q=r+for+sas-users; The reverse isn't the case http://www.google.com/search?q=sas+for+r-users; snip I can't wait that long. Until

Re: [R] SAS for R-users

2010-05-14 Thread Shi, Tao
- Original Message From: Erik Iverson er...@ccbr.umn.edu To: Thomas Levine thomas.lev...@gmail.com Cc: r-help@r-project.org Sent: Fri, May 14, 2010 6:18:04 AM Subject: Re: [R] SAS for R-users Thomas Levine wrote: There are loads of resources for users of any other statistics

Re: [R] SAS for R-users

2010-05-14 Thread Seeliger . Curt
Thomas writes: ... Until then and until I can convince colleagues and teachers to use better software, how do you suggest that I learn SAS? I suspect that it'll be a book on R for SAS-users, so I'm expecting recommendations of books like those that are best for R-users learning SAS

Re: [R] SAS and R on multiple operating systems

2010-04-07 Thread Roger DeAngelis(xlr82sas)
then a true programming environment. It generates terrible code, and programmers are sometimes relegated to cleaning up the CEOs code for production. Thanks Everyone This thred was an educationa opportunity for me -- View this message in context: http://n4.nabble.com/SAS-and-R-on-multiple

Re: [R] SAS and R on multiple operating systems

2010-04-06 Thread Peter Dalgaard
Douglas Bates wrote: The first VAX at our university, a VAX-11/780, was allegedly a 1 MIPS machine but it was pretty difficult to get it to do a million of any instruction in one second. I eventually succeeded because it had a special instruction for decrement and branch on zero so if you

Re: [R] SAS and R on multiple operating systems

2010-04-06 Thread Frank E Harrell Jr
Roger DeAngelis(xlr82sas) wrote: Hi, About the forest plot. Some Phrarma companies demand the report and graphics follow very restrictive layouts. Thank goodness that the FDA does not require that. Frank SAS allows uses to use one template for graphs and tables. Margins have

Re: [R] SAS and R on multiple operating systems

2010-04-06 Thread hadley wickham
 Also I have seen 5,000 page listings in SAS. Is this a pro or a con? Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice University http://had.co.nz/ __ R-help@r-project.org mailing list

Re: [R] SAS and R on multiple operating systems

2010-04-06 Thread Roger DeAngelis(xlr82sas)
the same line weight throughout the table. -- View this message in context: http://n4.nabble.com/SAS-and-R-on-multiple-operating-systems-tp1752043p1753151.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing

Re: [R] SAS and R on multiple operating systems

2010-04-06 Thread Barry Rowlingson
On Tue, Apr 6, 2010 at 6:27 PM, Roger DeAngelis(xlr82sas) rdean...@amgen.com wrote: Hi,  First a quick note about FDA and Style Guides.  Frank is correct the FDA does not require strict formatting. I once worked for small startup and they sent EXCEL sheets to the FDA. However big pharma

Re: [R] SAS and R on multiple operating systems

2010-04-06 Thread Roger DeAngelis(xlr82sas)
for each page. I don't think R is well suited for this cand og analysis. SOAPBOX ON If I had my way, I would remove IML from SAS and slide in R. My comments are primarily to get the R developers to improve R. SAS needs the competition. I don't see R as a replacement for SAS. SOAPBOX OFF -- View

Re: [R] SAS and R on multiple operating systems

2010-04-06 Thread Roger DeAngelis(xlr82sas)
supports templates? But Microsoft has a stranglehold on most companies. -- View this message in context: http://n4.nabble.com/SAS-and-R-on-multiple-operating-systems-tp1752043p1753285.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r

Re: [R] SAS and R on multiple operating systems

2010-04-06 Thread Roger DeAngelis(xlr82sas)
100s of journal articles, We integrated the R meta package with SAS to get the fixed/random effects and used SAS for input and final reports. SAS simply cannot keep up with new statistical algorithms. I wish I could show you some of style guides I have seen at various pharma companies. Here

Re: [R] SAS and R on multiple operating systems

2010-04-06 Thread Daniel Nordlund
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Roger DeAngelis(xlr82sas) Sent: Tuesday, April 06, 2010 6:35 PM To: r-help@r-project.org Subject: Re: [R] SAS and R on multiple operating systems Thanks Dennis, Thanks

[R] SAS and R on multiple operating systems

2010-04-05 Thread Roger DeAngelis(xlr82sas)
Hi, This is not meant to be critical of R, but is intended as a possible source for improvements to R. SAS needs the competition. I am reasonably knowledgeable about R SAS-(all products including IML) SAS and R run on Windows(all flavors) UNIX(all flavors) Apple OSs Does R run on natively

Re: [R] SAS and R on multiple operating systems

2010-04-05 Thread Thomas Lumley
On Mon, 5 Apr 2010, Roger DeAngelis(xlr82sas) wrote: SAS and R run on Windows(all flavors) UNIX(all flavors) Apple OSs I would expect that for more obscure Unices it would be difficult to get SAS, but basically, yes. Does R run on natively (no emulation)? We have quite a few users

Re: [R] SAS and R on multiple operating systems

2010-04-05 Thread Kevin Middleton
SAS and R run on Windows(all flavors) UNIX(all flavors) Apple OSs According to SAS (http://support.sas.com/kb/33/140.html and http://support.sas.com/kb/22/960.html), SAS will not run on OS X past 10.4. OS X 10.5 was released in late 2007, so I don't think it's really fair to say that SAS

Re: [R] SAS and R on multiple operating systems

2010-04-05 Thread Roger DeAngelis(xlr82sas)
of these operating systems. These releases extend JMP’s groundbreaking new way to explore and visualize data to more users. I get very confused with the myriad of SAS products. -- View this message in context: http://n4.nabble.com/SAS-and-R-on-multiple-operating-systems-tp1752043p1752139.html Sent from the R

Re: [R] SAS and R on multiple operating systems

2010-04-05 Thread Barry Rowlingson
On Mon, Apr 5, 2010 at 9:13 PM, Roger DeAngelis(xlr82sas) rdean...@amgen.com wrote: Hi, This is not meant to be critical of R, but is intended as a possible source for improvements to R. SAS needs the competition. I am reasonably knowledgeable about R SAS-(all products including IML

Re: [R] SAS and R on multiple operating systems

2010-04-05 Thread Stuart Luppescu
On Mon, 2010-04-05 at 23:12 +0100, Barry Rowlingson wrote: 3. Highlight and hit F3 and the code is run interactively in unix. Okay, what's going on here? You have a Windows box (presumably in front of you) and a Unix box somewhere on the network. And hitting F1 runs it on the Windows

Re: [R] SAS and R on multiple operating systems

2010-04-05 Thread Roger DeAngelis(xlr82sas)
datasets. -- View this message in context: http://n4.nabble.com/SAS-and-R-on-multiple-operating-systems-tp1752043p1752185.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] SAS and R on multiple operating systems

2010-04-05 Thread Roger DeAngelis(xlr82sas)
/SAS-and-R-on-multiple-operating-systems-tp1752043p1752189.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] SAS and R on multiple operating systems

2010-04-05 Thread Roger DeAngelis(xlr82sas)
Hi, One other point. The connection I have with mutiple servers is persistent the windows SAS executable is is constant contact with all the SAS server executables. Also I can submit a job where unix code is interspersed with windows code. I do execute R and perl from SAS using pipes

Re: [R] SAS and R on multiple operating systems

2010-04-05 Thread Roger DeAngelis(xlr82sas)
think all the suggestions so far have been 'batch' execution on the server. Regards -- View this message in context: http://n4.nabble.com/SAS-and-R-on-multiple-operating-systems-tp1752043p1752255.html Sent from the R help mailing list archive at Nabble.com

Re: [R] SAS and R on multiple operating systems

2010-04-05 Thread Daniel Nordlund
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Roger DeAngelis(xlr82sas) Sent: Monday, April 05, 2010 3:35 PM To: r-help@r-project.org Subject: Re: [R] SAS and R on multiple operating systems Hi, I am using SSH

Re: [R] SAS and R on multiple operating systems

2010-04-05 Thread Roger DeAngelis(xlr82sas)
://n4.nabble.com/SAS-and-R-on-multiple-operating-systems-tp1752043p1752294.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] SAS and R on multiple operating systems

2010-04-05 Thread Gabor Grothendieck
On Mon, Apr 5, 2010 at 8:34 PM, Roger DeAngelis(xlr82sas) rdean...@amgen.com wrote: Hi,  You are absolutely correct about 32/64 and it appears to be a severe penalty. But I think 32 to 32(win/unix) does not incur the penalty. There are even more issues between mainframe and unix/windows. The

Re: [R] SAS and R on multiple operating systems

2010-04-05 Thread Douglas Bates
On Mon, Apr 5, 2010 at 3:13 PM, Roger DeAngelis(xlr82sas) rdean...@amgen.com wrote: Hi, This is not meant to be critical of R, but is intended as a possible source for improvements to R. SAS needs the competition. I am reasonably knowledgeable about R SAS-(all products including IML

Re: [R] SAS and R on multiple operating systems

2010-04-05 Thread Roger DeAngelis(xlr82sas)
Regards -- View this message in context: http://n4.nabble.com/SAS-and-R-on-multiple-operating-systems-tp1752043p1752353.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo

Re: [R] SAS and R on multiple operating systems

2010-04-05 Thread Roger DeAngelis(xlr82sas)
() Also I have seen 5,000 page listings in SAS. -- View this message in context: http://n4.nabble.com/SAS-and-R-on-multiple-operating-systems-tp1752043p1752362.html Sent from the R help mailing list archive at Nabble.com

Re: [R] SAS vs. R in web application

2009-09-08 Thread Frank E Harrell Jr
demos of R on web servers. Frank Carlos Alzola wrote: Good evening, I have been asked to investigate the pros and cons of using SAS vs. R in a web application. Either SAS or R would be the engine used to make some very simple calculations and to produce graphs, preferably in png format

[R] SAS vs. R in web application

2009-09-08 Thread Carlos Alzola
Good evening, I have been asked to investigate the pros and cons of using SAS vs. R in a web application. Either SAS or R would be the engine used to make some very simple calculations and to produce graphs, preferably in png format. The advantages of R are pretty obvious as there would

Re: [R] SAS vs. R in web application

2009-09-08 Thread Gabor Grothendieck
You would normally have R or SAS run on the server, not on the client machine so whether it opens a window or not makes no difference. The window is not on the client's machine anyways. The client only has a browser. From within R see ?Rscript and ?system On Tue, Sep 8, 2009 at 11:19 PM

Re: [R] SAS to R - if you don't have a SAS license

2007-12-28 Thread Frank E Harrell Jr
Wensui Liu wrote: while I move data between SAS and R all the time, personally I don't think your recommendation is very practical. Instead, I feel SAS transport file is much better than csv. Plus, the sas dataset created on unix can't be opened by sas viewer on windows. It is even undoable

Re: [R] SAS to R - if you don't have a SAS license

2007-12-28 Thread Marc Schwartz
On Fri, 2007-12-28 at 11:21 -0600, Frank E Harrell Jr wrote: Wensui Liu wrote: while I move data between SAS and R all the time, personally I don't think your recommendation is very practical. Instead, I feel SAS transport file is much better than csv. Plus, the sas dataset created

Re: [R] SAS to R - if you don't have a SAS license

2007-12-28 Thread Frank E Harrell Jr
Marc Schwartz wrote: On Fri, 2007-12-28 at 11:21 -0600, Frank E Harrell Jr wrote: Wensui Liu wrote: while I move data between SAS and R all the time, personally I don't think your recommendation is very practical. Instead, I feel SAS transport file is much better than csv. Plus, the sas

[R] SAS to R - if you have SAS 8.2+

2007-12-28 Thread Gyula Gulyas
Hi there, the attached R function uses the SAS Integrated Object Model (IOM) and it can deal with SAS dates and long variable names. All you need to provide is the folder where the SAS data file is and the data file name without the extension. The function requires the rcom package

[R] SAS to R - if you don't have a SAS license

2007-12-27 Thread Gyula Gulyas
Hi all, if you do not have a SAS license but want to convert native SAS data files, the solution below will work. # read SAS data without SAS # 1. Download free SAS System Viewer from either of the sites below: # http://www.sas.com/apps/demosdownloads/setupcat.jsp?cat=SAS+System+Viewer

Re: [R] SAS to R - if you don't have a SAS license

2007-12-27 Thread Wensui Liu
while I move data between SAS and R all the time, personally I don't think your recommendation is very practical. Instead, I feel SAS transport file is much better than csv. Plus, the sas dataset created on unix can't be opened by sas viewer on windows. It is even undoable if the dataset is large