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

2010-04-07 Thread Roger DeAngelis(xlr82sas)
Hi, SASweave is an interesting concept and is further along than I thought. Thanks Donald. I have checked out many sources on the net. Also thanks for offering to help me get started. I have a masters in stat, not a Phd and I spend most of my time programming so I am a little over my had wit

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

2010-04-06 Thread Roger DeAngelis(xlr82sas)
Thanks Dennis, Thanks for taking the time that was a very informed response. It was a teachable moment for me. I didn't know about the breath and depth of LaTeX. I need to do some self education. Unfortunately I don't see how to integrate LaTeX with SAS, since SAS has its own template/ta

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

2010-04-06 Thread Roger DeAngelis(xlr82sas)
Hi, I agree with Barry, but there are some of us out there that are trying to change the image of big Pharma. R helps statisticians do real science. I have complained for about 10 years about EXCEL and WORD driving the delivery of inputs and outputs. Years ago, I did a short gig with contrac

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

2010-04-06 Thread Roger DeAngelis(xlr82sas)
Hi, Just a couple of notes to reply to others questions. 1. unx is a file handle that points to my UNIX SAS work directory(like an R workspace). This directory is not mounted under windows. most of the SAS objects, ie SAS datasets in the 64bit Unix directory are available to my windows SAS p

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

2010-04-06 Thread Roger DeAngelis(xlr82sas)
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 usually has very strict formatting requirements. I once produced a table where one of the

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

2010-04-05 Thread Roger DeAngelis(xlr82sas)
Hi, About the forest plot. Some Phrarma companies demand the report and graphics follow very restrictive layouts. SAS allows uses to use one template for graphs and tables. Margins have to the same for all reports. Fonts, fontsizes, linewidths, boxing body, cell spacing, cell pad

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

2010-04-05 Thread Roger DeAngelis(xlr82sas)
Hi, Again I slight mistake on my part. One of the largest Pharmaceutical Contract companies uses VMS. I erroneously added the VAX in front from my memory. I don't want to mention the company, but if anyone else there is familiar with contact pharma companies, one of these uses VMS(extensively-p

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

2010-04-05 Thread Roger DeAngelis(xlr82sas)
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 32 to 64 is a big hit when querying data dictionaries that have a mixture of 32/64 bit S

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

2010-04-05 Thread Roger DeAngelis(xlr82sas)
Hi, One final point about persistent simultaneous environments. In windows I sit in my development directory(PWD) and simultaneously my Unix session sits in my production directory(PWD). This simplifies versioning, promotion to production and batch execution. My Unix session is persisten

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)
Hi, Here is the SAS command macro that reads what I highlight in my editor and prints 40 observations from the highlighted dataset after hitting the function key F4 F4 stores the highlighted text in the clipboard then executes the command macro, the rsubmit executes the code on the unix zeus s

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

2010-04-05 Thread Roger DeAngelis(xlr82sas)
Hi, I am using SSH, however I do have to set up a SAS Spawner on the remote host and use SAS remote library services. I also have to have listeners on both client and host? I am not a systems guy, so I do not know exactly how SAS makes the remote libraries available to windows. It is a li

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

2010-04-05 Thread Roger DeAngelis(xlr82sas)
Hi, You are correct SAS no longer supports OS X under SAS-Proper. I use the term SAS-Proper for base SAS with SAS-Connect. It does appear that some improper SAS products are supported under MAC OS? SAS releases JMP® 8 for Mac, Linux Users of all major desktop operating systems can now explore

[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] Reading sas7bdat files directly

2010-03-01 Thread Roger DeAngelis(xlr82sas)
Hi, It looks like we may need to swap bytes(little endian to big endian). I will look into it tonight. As a side note, SAS reserves 28 floats for missing values. It should be easy to convert these to NaN on input to R. You can test this in SAS by converting the 16 char floats to ieee8. in S

Re: [R] Reading sas7bdat files directly

2010-03-01 Thread Roger DeAngelis(xlr82sas)
Hi All, The hack below might help R users get going with Chris's DSREAD. I have not had a chance to look at Monday's version of DSREAD, can't wait. Note Duncan Murdoch was most gracious to supply me with a R function to translate floats in 16 char hex to R floats. Your utility solves the 200

Re: [R] Converting IEEE Float in 16 char hex back to float

2010-03-01 Thread Roger DeAngelis(xlr82sas)
Hi, DSREAD utility solves the 200 byte, 8 char name and potential precision errors with other methods of transfering SAS datasets to perl and R. Importing SAS datasets(sas7bdat) into R (32 bit windows 2000, 32 bit SAS 9.2 and 32 bit R version 2.9.0 (2009-04-17) Here is what I want to

Re: [R] Converting IEEE Float in 16 char hex back to float

2010-02-27 Thread xlr82sas
Thanks Nice code. I appreciate the function. I don't know if you ever use SAS datasets but I am working with the devloper of 'dsread' to create a lossless transfer from SAS to R. I am also working on an in memory Java interface which would allow me to mix SAS and R code. Here is the link to dsr

Re: [R] two questions for R beginners

2010-02-27 Thread xlr82sas
Hi, I don't think you should split the list for beginners. On the SAS list we get questions from novices such as secretaries, janitorial services, human resources and even top executives. They often approach SAS from a very intuitive standpoint. These questions often shake the experts t

Re: [R] two questions for R beginners

2010-02-27 Thread xlr82sas
Hi, I don't think you should split the list for beginners. On the SAS list we get questions from novices such as secretaries, janitorial services, human resources and even top executives. They often approach SAS from a very intuitive standpoint. These questions often shake the experts t

[R] Converting IEEE Float in 16 char hex back to float

2010-02-26 Thread xlr82sas
Hi, If I do the following sprintf("%A",pi) "0X1.921FB54442D18" I have this 16 byte character string hx<-"400921FB54442D18" This is the exact hex16 representation of PI in IEEE float that R uses in Intel 32bit(little endian) Windows SAS uses the same representation. 11 bit exponent and 53 bit

Re: [R] Translation from R codes to SAS.

2009-12-01 Thread xlr82sas
ychu066 wrote: > > my teachers doesnt understand R and I don't know how to use SAS. > Anyone interested in translating my codes to test whether your SAS codes > are as good as R??? > I can test it on SAS codes once you have translated it > > > > regards:working: > It is quite easy