Ask Slashdot: Switching From SAS To Python Or R For Data Analysis and Modeling?
An anonymous reader writes "I work for a huge company. We use SAS all the time for everything, which is great if you have a bunch of non-programmer employees and you want them to do data analysis and build models... but it ends up stifling any real innovation, and I worry we will get left behind. Python and R both seem to be emerging stars in the data science game, so I would like to steer us towards one of them. What compelling arguments can you give that would help an old company change its standard if that company is pretty set in its ways?"
This is what R is for.
..
Why Python and not C or ERLANG or COBOL?
"His name was James Damore."
Python and R are sort-of converging via Pandas. I'm partial to Python, but Pandas really starts to blur the lines conceptually.
W..w..W - Willy Waterloo washes Warren Wiggins who is washing Waldo Woo.
It's unlikely that SAS is the root cause of a lack of innovation, so it's unlikely that introducing a new tools by itself will make a difference. The fact that you work for a 'huge company' is more likely the problem. Does senior management agree that innovation is a priority? Are they willing to make the changes to encourage it (which usually means breaking down fiefdoms, giving up power, and lots of things that senior managers hate doing)? The choice of language is kinda irrelevant absent the right environment.
The cost of training them to use R will be signifantly cheaper than what you are spending on the SAS licenses, which (last I knew) was a yearly purchase for each user.
And yes, while I have not used R myself, I would certainly recommend it over Python for this use case as it is very dedicated to doing the kinds of things that SAS is good at in a very efficient, friendly manner. I've seen a number of people use it to do some very neat statistical analysis, and their stuff was a lot simpler than the SAS scripts that I use to write years back.
Truth is like the sun. You can shut it out for a time, but it ain't goin' away. - Elvis Presley (source: imdb.com)
Is it your feeling that SAS is "stifling any real innovation" or do you have examples of projects that are impossible with SAS but possible with Python or R?
Do those example projects actually help the bottom line of the company or are they just "cooler"?
If you can think of examples that have clear financial benefits to the company, you have a solid business case already.
If there are no such examples or other factors negate the benefits, then the company has nothing to gain by switching and should not switch.
Short answer; if you're asking on Slashdot for reasons to switch from product X to product Y, you probably have no real reason to switch.
Slashdot social media options: AIM, ICQ, Yahoo, Jabber and Mobile Text. Why no MySpace?
>"I work for a huge company. [...] What compelling arguments can you give that would help an old company change its standard if that company is pretty set in its ways?"
To change an huge old company ? Don't try for your own sanity. Even with an official mandate.
You're using SAS because it's a closed-source, paid-support software package. R and Python aren't replacements for that.
Having said that: if you're building statistical models, and you want to provide some interfacing for your non-programming employees, you don't want Python, you want R, in particular, RStudio. You can build routines and packages in R and interface them through RStudio that will still allow your employees to (mostly) ignore programming. However, there's still a huge jump in competence that's required to go from click-and-chug SAS usage to R usage, and I doubt it's going to happen for you.
Also, a caveat: if you're in some form of health care or drug development, you're not going to change. Period. The FDA and other regulatory agencies _require_ SAS analysis, so you can't just substitute with your own choice.
Never used anything more than Perl. Yes, yes, I know... Perl is no longer the darling of the "must have a new langusage every year" crowd, but Perl rocks for the same reasons R rocks for data manipulation. Yes, yes, I know I'm considered a UNIX neckbeard for still using Perl. If it's not broke, don't fix it. Perl is a little slower than Python and R for some things, but I see no reason to change when I can do what I need to do in Perl. Let's not even talk about the goodness that is CPAN. This is where Python is lacking. I've been using Perl in various ways since 1998. I'm sticking with it. If people think that Perl sucks for statistical analysis, let them think that...
Emerging? They were emerging a decade ago. They have emerged. Look, if the company is, as you say, "set in its ways", that is a cultural problem. Unless you are an executive that gets to set goals and compensation, you have very little influence over it. If that is not you, either stay and live with what you have, or leave for greener pastures. The basic question you have to ask yourself is "how will staying here using these outdated tools affect my lifetime earnings potential?" Put another way: "are they paying me enough to put up with this shit?" That is my prime criteria for deciding whether to stay at any job. Your job is to make recommendations. I assume you have already done that and been shot down. Decision time: should I stay or should I go.
the growth in cynicism and rebellion has not been without cause
While healthcare companies have a history of using SAS. The FDA does not *require* SAS
"The FDA does not endorse or require any particular software to be used for clinical trial submissions, and there are no regulations that restrict the use of open source software (including R) at the FDA." -- http://blog.revolutionanalytics.com/2012/06/fda-r-ok.html
Official FDA policy and requirements is outlined here: http://www.fda.gov/iceci/enforcementactions/bioresearchmonitoring/ucm135196.htm
SAS is not a language; it's a full multi-tiered solution for the aggregation, normalization, and analysis of data. There's a language as well, but that's just one part of the whole solution. Python and R, while absolutely fantastic languages, are not a full solution.
So, first step...if you're going to offer an alternative, actually have an alternative. I don't know your SAS buildout nor do I know the data sources it consumes, so I can't really point to what else you need to add or how you need to construct it to produce a more flexible replacement to your existing and current SAS infrastructure.
Second step...a roadmap for migration. It's one thing to sign a lease for a new apartment or to buy a new house, and another to shift your life from the old place to the new. If you don't have a plan, at least in broad strokes, then you're going to be doomed when you look for executive sponsorship. You need to make sure that you get all the stakeholders' input as well, lest you leave something out in your roadmap...and then end up with someone who sees you as a problem. That person will most likely be in a position to scuttle the whole thing, as well.
Third step...figure out how to define the benefits in terms of the stakeholders' needs. You're going to replace a system they use; why should they want you to do so? And you have to define it from their perspective, with regard to things they care about. Beware of getting geeky on this...it's very likely that at least one of the people whose support you will need will not be a geek and will be concerned with the output more than the technical means used to produce it. Don't hard-sell, either...pushing too hard will get the door slammed in your face, and even potentially polarize people against you. (See above, under "in a position to scuttle the whole thing.")
There will be steps after that, but those will be largely determined by how the first three steps go. It may involve bringing in outside vendors, doing requirements analysis...a lot of it depends on details of your company as well and how they normally do things. But above all else, remember this: don't buck the system too hard, and don't knock the company you work for. Trying to get a lot of people to support and cooperate with you while telling them that their way of doing things sucks is suicide.
For your security, this post has been encrypted with ROT-13, twice.
Personally at least.
I used to work in one of the largest banks in the world, and everything we did was SAS/MSSQL.
I had some personal stuff in R, but most of the other analysts didn't seem too interested except using what I made for them except for one phd in the German department. I never pushed it though since there was so much legacy code, including code I had written my self.
Now I have switched to a start-up bank, and I am the only analyst.
I've used R/RStudio/Shiny with PostgreSQL in the back very successfully, with all code in git. Now I can bring good analysis forth much faster than I used to in SAS that can be viewed on any device with the option of downloading the source data in excel and csv.
The management loves this.
If you show them a few good ones they will want more, but I wouldn't start to rewrite all the legacy code. SAS isn't bad when you have it set up properly.
But another good thing about R is that you get access to innovation in the statistics fields faster, and you don't have to pay huge sums of money for extra features.
RStudio and Shiny is a bit expensive for the pro versions, but nothing compared to SAS, and the open source versions are free.
Don't bother with R, use Python from the start. On the off chance that you may need some R functionality that can't be replicated or doesn't already exist in a Python library, you can always call R functions from Python through an interface/wrapper. As far as programming languages go, Python and R play in different leagues.
Don't SAS me boy!
Go do something in R or Python that is useful to the company but impossible or very difficult in SAS.
Then show it to the hard-core SAS users. If they're interested, demonstrate it to your boss along with how it can save the company (and especially your cost center) money.
"I don't know, therefore Aliens" Wafflebox1
if your company is using SAS, then i don't think what you're doing is data science. analysis is not data science.
--- widget evolution: enhanced, plus, super, ultra, extreme, exxxtreme, ultra-extreme,
Just from reading the summary, I would say you don't know what the hell you're talking about.
Seriously, replacing a SAS with Python or R is not a solution at all. It seems to me like you're completely unaware of the infrastructure and connectivity involved with SAS.
You need to do a lot more research on data analysis, data mining, analytics, and integration before even talking about a solution. Because you don't know what the tools you want to replace actually do; you're just looking at one aspect of the infrastructure.
In my experience, R is better for non-programmers precisely because it doesn't often behave like a typical programming language. It is *designed* for statistical analysis and so for someone just starting out it can be very intuitive.
The phrase "non-programmer employees" makes me think it doesn't matter for your company.
If the users aren't statistically trained they'll probably never need the capabilities that R and SAS offer. Something like excel or JMP would be fine if they're occasionally running regressions and making pretty pictures for presentations.
I work at a University with a Statistics program good enough to have its own separate department. We primarily teach our students to work in R, so why not take advantage of all the free training.
SAS on Z/OS ?
Good luck with your python code.
I think you should learn SAS.
I work for a large Fortune 25 company. We have an existing SAS presence and we do some good work in SAS. There are two main reasons that we are bringing R into our environment: research and recruitment/retention.
R is extremely common across research right now. When a new paper comes out describing a new algorithm or modeling technique, the odds are extremely good that it comes with R source code. With R in-house, there is very little time or effort to try these things out to see if they can help our current work. With SAS, we would need to invest time recoding everything or worse, wait until it is baked into SAS itself. That is a huge barrier to adopting new approaches.
Recruitment and retention are related to R's popularity in research. Let's face it, data scientists are a hot commodity right now. Lots of companies are looking to hire them and there aren't enough good people to go around. We're seeing that a lot of the new talent have been using R in their graduate work rather than SAS, and are interested in an environment where they can continue using R. Additionally, it's harder to retain people once you've hired them if they can't use what's become a lingua franca.
SAS remains a great tool, and we're not going to get rid of it. Rather, we want to add R to the toolbox.
(I don't mention python here... We've got some folks working with Python especially for NLP, but for the work we do there's a lot more folks using R across industry and academia.)
I work in IT at a large company (>30k employees) who recently dropped SAS. Before we did, we tried out R but what we found out was that except for IT and some tech savvy engineers, nobody seemed to get anything done without help, even after training.
We had decided to drop SAS due to the ludicrous license costs (at one point we were paying more on renewals than we did when we purchased it! WTF?) and due to some issues with their installation/upgrade process that they were not able to resolve within a reasonable timeframe. We ended up switching to StatSoft's STATISTICA, which has a much lower price point (~30% of what we paid for SAS), predictable renewal fees (20% of purchase price), vast feature set (in the Data Miner package we have), excellent Office integration and import/export compatibility with SAS data files. Oh, and it also features R integration so you can still use R from within it if you want. Users became proficient very quickly, after receiving some training.
I recommend you consider their solutions... Open source is not always best, especially when it comes to borderline tech-illiterate business users.
Both in terms of the language and packages. MOOCs are freely available from top notch universities (Johns Hopkins) to provide the training and development of personnel for R utilization.
I would recommend R. It's the language college grads are getting trained in. The reason for that is simple. There's no licensing costs for a simple R dev environment. However, I wouldn't use the free stuff for anything that ad hoc. If you have a production big data job I would look at something like Vertica (purchases by HP a couple years ago.) Extremely fast big data DB engine. Not only will it run R, but it has the ability to break the R up into smaller chunks at execution time and distribute the execution across the DB cluster.
Stuff like that just isn't possible in SAS yet. SAS is built upon some very old skool constructs that make it very brittle and very difficult to meet the performance expectations of todays big data world. SAS may end up there, they are privately held and have a very large R&D budget, but I think they would have to do a total rewrite for it to compete. Not that SAS is going away, there's just so much of it in the business world. Be that as it may, in 15-20 years SAS could be a Foxpro of it's age.
Granted, I don't have much experience with R, but Python has some notable benefits - it is very well established and you can find tools to do just about anything. It is fast and easy to develop, and very easy to learn thanks to the readability and plentiful resources online. I imagine you'll have an easy time finding people with python experience, as well.
I haven't used it for any "big data" tasks, but for a number of small, interactive data analysis utilities it has been really enjoyable to work with. One standout tool for me has been pyqtgraph, which is lightning fast and creates some really impressive interactive visualizations. It's also got some pretty incredible features out of the box - arbitrary user-definable ROIs, instantly change any plot to a log-log, or even do a Fast Fourier transform with just a right click. If I sound like a fanboi, I kind of am - after trying to deal with the agony of 3D data manipulation in matplotlib (python's matlab package), it's a whole different world.
R has more single function high level commands devoted to stats, these are done right internally and are self consistent with other functions for further processing. But its not as general a programming language as python. if you want something different than the canned functions in R then you will need to write them yourself at which point you might as well be using python. however if you like SAS then chances are R will seem more like what you are hoping for.
Some drink at the fountain of knowledge. Others just gargle.
You could be investing in building your own talent and skills for the price of what you are paying in licensing costs. Also if you want to attract top talent and not fall behind in data science it helps to be using the best tools of the trade. From your questions it looks like R is the best fit for you. But if you have good programmers you could also be successful with Python.
My company recently released a blog post on the "battle" between Python and R (shameless plug).
http://veracityfa.com/index.php/our-blog/98-my-take-on-the-battle-between-python-vs-r
i'd take a look at JASP.
http://jasp-stats.org/
- it has an attractive UI like SAS and SPSS, and you're not stuck writing code for an analysis that should be quite straight forward.
- the analyses are themselves implemented in R, and python is to be supported.
- an API is in the works for implementing arbitrary analyses
Python seems to be gaining favor but IMHO the downside is that it's a general purpose language and not built with statistics in mind.
R is quite easy to use both from installation to language standpoint. It's trivial to install and there are many, many packages (of differing quality) on cran. You can easily take advantage of multiple processors, GPUs, even Hadoop (to an extent). The main downside is that it's mostly constrained by the memory of the host system. So even though it's easy to load a 20G dataset into my 32G laptop, it's not quite so easy to work on a 2TB dataset without some customization. At that point other tools may be easier, such as Python.
Now... I have never needed to crunch a 2TB dataset. My scripts fit comfortably into an 8G VM. What R gets me is that, as a non-statistician, I can easily generate charts, run analyses, and use the libraries that smarter people have built :>. The syntax is trivial and I can do 99% of what I need with a library or some minor customization.
For programmers, I'd say that the combination of iPython+numpy+scipy is pretty hard to best. I've been working elusively with this stack for about a year, and I especially like iPython notebooks' ability to mix code, documentation, and graphics all in a single document; it makes replicable, self-contained analysis pretty straight-forward. The Anaconda distribution contains everything you need in a single, easy-to-install tarball (along with a whole lot of other scientific packages preinstalled.
But you really do need some good programming chops.
Until I switched I was using R+RStudio. R has a lot of packages for just about any kind of analysis you could imagine, and you could do worse than with it. R is probably a little easier for non-programmers, and a little harder for programmers (for example, you can use functions as first-class objects (kind of), but they are inserted textually at interpretation time, so that modifications to the functions are not replicated to the data structures that reference them. Also: 1-indexing).
I haven't really used it, but I've heard good things about Julia (especially if you're familiar with Matlab). Plus, it seems to play nice with Python. http://en.wikipedia.org/wiki/J...
http://julialang.org/
You should also consider Mathematica. It has made great strides in data analysis in recent years and is way better for mathematical modeling than Python or R.
Greatest thing about SAS, is the support they provide. Surprisingly this is a well kept secret, particularly in huge companies. SAS support folks actually know statistics very well (and I believe support is free), and may even code a solution if one is willing to share data.
At risk of slipping into psychoanalysis, it appears that your question/(problem?) is related to working in a huge company. Most people who work in huge companies feel small and insignificant. If this affects you, look around - in huge companies, it is likely that there are already some groups that use R, if you that tickles your fancy.
Though R is great for cutting edge analytics, most departments in most huge companies hardly ever do any of that. Personally have seen huge company folks that do not know what median means. Even more depressing is when "paid professionals" in huge companies do not know how to calculate averages. In such circumstances, it hardly matters whether a person uses SAS, R, or Python. In fact SAS may have a slight advantage in such circumstances.
The cost of training them to use R will be signifantly cheaper than what you are spending on the SAS licenses
And yes, while I have not used R myself, I would certainly recommend it over Python for this use case
So not having used R yourself, why do you believe it is the better and cheaper solution?
There is a classical problem here. R is great for getting trained and productive VERY quickly. It has 4,600 packages that will do almost anything you need to and it does some very sophisticated statistical methods right out of the box. What can't be done out of the box (or from the core download since it's not really a boxed product) has likely been coded in a package -- even very complex biostatistical and bioinformatics methods. Also R has a lot of graphical data visualization functionality built in and extended by some awesome packages like ggplot2. Additionally, R does a great job with documentation as it can inject data, visualizations and code into markdown documents, which makes publication a whole lot easier. R's functional/imperative/quasi-object oriented approaches have their quirks (but then what language doesn't?). One thing to note however is that R is not in itself multithreaded and it requires that all the data it is working on reside in memory. For very large, very complex data sets that could be a bit of problem. So where R is great from a quick ramp up perspective, Python will probably scale better to huge datasets in the tera- and peta- byte range. It has come along way especially with scipy, numpy and other packages listed above. So if you anticipate having to scale in this way, then Python maybe a better long term toolset. I like them both and use them both. I choose which one I am going to use for a project (and stick with the toolset for the whole project) based on dataset size, statistical/visualization complexity and documentation requirements. R tends to win out a bit more often for me.
Be More, Be Manly, The Manly Geek Ubergeek Extraordinaire Blogger: www.manlygeek.com/blog Podcaster: podcast.man
The people who do analysis on institutional data are experts in their field. YOU are an expert in the field of programming so it is YOUR job to provide them with an extract or presentation of the data. I challenge you to call up the VP of Finance and ask him/her to learn python.
I find R's syntax really annoying for actually doing anything. So I do all the data acquisition, manipulation, etc. in Python and use the RPy2 bridge to just run the actual analysis in R. Best of both worlds.
R isn't a replacement for SAS---in practical use it requires much more command line programming ability and although it has an enormous number of packages, many of them are 'academic quality' (meaning good enough to make papers) and fewer are highly validated production quality with all the edge cases & stability tested.
Some SAS capabilities can run 'out of core' (unlike R) so you can process data sets which would not fit into RAM.
Statistica (StatSoft) is the closest direct competitor (Windows only unfortunately) to SAS, and from all the reviews I've read, it's significantly better.
If your institution already has a SAS base, then it will stay that way. However, there are probably many "data management" and "data processing" tasks whose nature is somewhere between computation and file/database management---but often they get implemented suboptimally in whatever package the authors found at hand. So you may be doing lots of things in SAS that you shouldn't be---and the best replacement here is python, not R. The business case to your management could be improving workflow, clarity and lowering the number of SAS licenses needed.
Keep the SAS core tasks for which SAS is good as it is, and evaluate Statistica for these as a competitor, if only to get a break on licenses from SAS if your company does a bake-off competition & bid.
The arguments in favor of R boil down to this: R is more widely used by statisticians and has a much larger library of statistical packages. But R is not a very good programming language, is difficult to learn, and is not well suited to integrate with or be used for more general purpose programming tasks.
Python, on the other hand, has a vast library of packages but does not yet have nearly as many packages specialized for the statistical computing domain. The arguments in favor of Python are, in essence, that it's very easy to learn and easy to use and easy to integrate with other general purpose programming tasks. Python is also gaining a lot of momentum in the scientific computing community. For many statistical analysis applications (most?), the packages that do exist for Python are more than adequate. Some folks even suggest that R's lead over Python is evaporating fast.
When you get into the statistics, numpy, and scipy, it's all just python bindings for native fortran/C code--so it tends to be about the best there is in terms of execution time.
I work for a *large* US federal government agency - NOT DoD, thank you - and our division does medical research on heavy-duty systems. Many of the researchers are using python or R - I believe it's a matter of what they're more familiar with, or find easier to use, based on their own predilictions.
Did I mention that we run Linux on all but a couple servers....?
At any rate, their results are certainly good enough for publication, with our organization's name behind it.
mark, who does not speak for his Division, Center, organization, or agency, nor for his employer
(a federal contractor), much less for the view out his non-existant window
I realize the readership of this blog has descended into the abyss. Answering questions of this nature is the job of the person asking the question. If I was an employer and found an employee posing workplace related questions on the blog, that employee would be an ex-employee PDQ.
Wisdom indeed. Also... can you elaborate one what real innovation is? Seriously. Do you have an example or two of what opportunities are being crushed by the existing culture of "fake innovation"?
Because if not... if this is really large company, you may be perceived as a "precious little snowflake that also complains a lot."
And if this is a really large company, they're going to be able to coast along on the status quo for LONGGG time and I don't know why anybody would listen or care about a whiny snowflake.
So... can you (OP) elaborate the "real" part of "real innovation" ?
What amazing market opportunities are the current group missing?
What kinds of obvious fraud detection is slipping through their collective fingers?
What tremendous potential for increasing shareholder value is being left on the table?
Look, I'm not saying this incredibly large organization of yours could never benefit from some innovation, but realize this: you're going to be pushing against the inertia of entrenched culture and "we've always done it this way", which makes those "Stop Plate Tectonics" bumper stickers seem like an easy task by comparison.
I'll close with an alternative possibility: "I don't much like SAS. Nor do I like the people who have built a functioning SAS-ecosystem that handles this company's Multi-Billion euro statistical needs 'well enough'... it just doesn't encourage real innovation ('real' being code for 'fun'), instead I have to spend my time reading through thousands of pages of documentation and requirements specs and I have to troubleshoot this existing install base... Boy, I wish we had an opportunity to do real innovation here..."
that R is 15 better than C.
I was able to figure that out with this bit of C code:
printf("%d", 'R' - 'C');
I'm not sure how to do that in R though.
I used to be you, almost exactly. Almost everything we do at work is in SAS, and I was pushing hard for R and Python and getting nowhere. I hated SAS because it was so clunky and out of date. So many SAS programs are bad because they're being done by statisticians with no programming background. Then I went to NESUG a few years ago and saw presentations by the likes of Whitlock, Dorfman, and others, and realized serious programming *was* being done in SAS. I resolved to just become the best SAS programmer I could. The first thing you need to do is stop programming Python in SAS. SAS is like Lisp in that it is a different paradigm, and not programming in that paradigm only makes things harder. Learn that paradigm. Learn the data step inside and out. Every time you have a %do loop, ask yourself if you can do it in a data step. Every time you wish you had OOP, ask yourself if you could represent the objects in a data set. Or learn the new ds2 data step that has OOP. Learn proc sql and know when it's better to use than a data step. That's what I did, and it took my SAS programming to a whole new level, and allowed me to innovate legacy code and transform the applications we were using. Because back when I was you, SAS wasn't the obstacle to innovation, I was.
I work for a large University in a division that provides financial data to ourselves, as well as other academic institutions. We had been a SAS only shop since our inception in the early '90s, save for a few FORTRAN users here and there.
We wanted to support more options for the researchers using our service, and today, we support SAS, R, and Python. One nice thing about SAS is SAS/SHARE. Basically, it makes your native SAS files (*.sas7bdat) available as tables in a database over ODBC or JDBC, with full index support. This has allowed us to consume these same data in both R and Python. This had made many of our younger researchers (think Masters students instead of tenured faculty) very happy!
Good luck.
RPy2 [http://rpy.sourceforge.net/rpy2/doc-2.4/html/overview.html], project is focused on providing simple and robust access to R from within Python. Having an interface between both languages to benefit from the libraries of one language while working in the other.
For R there exist attempts at GUI's (like e.g. R-commander) that offer point-and-click functionality but they're more sketchy.
I think that giving non-programmers access to R will result in a flood of help requests because they really do need some notion of programming to use the R language. With SAS that's more in the background because the GUI tool is relatively well done, and use of the butt-ugly, antiquated and clumsy mainframe-style SAS language can usually be avoided.
In addition I don't know of any (reliable and working) alternative to the SAS Enterprise Guide. which lets you click together elementary data-procesing steps in a network that shows the structure and the results of your work.
I think that statisticians, real analysts and data-scientists will soon feel constrained by SAS and will prefer to use SAS to prepare a dataset for analysis, and then carry out any actual analysis in R.
Last but not least, R is still an in-memory analysis program, which practically limits analyses to what you can be fit in core. There are packages that try to extend R in this direction, but I consider them to be poor quality and cumbersome.
Python on the other hand is aimed squarely at programmers, and nobody else.
R has been around for a long time and has long been a standard.
Pythons sklearn is indeed an 'emerging star'.
Personally I use both.
Also have a look at some of the many stand alone tools vowpal wabbit (blazingly fast for regression learning, scales to ridiculous amounts of data) is superb, as is sofia-ml (for clustering, again scales quite well)
I tie them all together in python, since there are python bindings for R, and you can use pythons 'Subprocess' module to pipe commands and data for commandline tools that don't have python bindings.
There are other useful tools as well - I use Weka for some of my initial visualization and when I'm feeling lazy and want a quick result.
I used to work for an organization that used SAS. As I recall, its only selling point was backwards compatibility with 1970's IBM mainframes. I rewrote all the SAS scripts I was given in a mix of other languages (R wasn't an option at the time, and I hadn't discovered Python yet). I don't know much about R, but I highly recommend python for its versatility.
I mean, if SAS works, why waste time on hot cool stuff that may be obsolete in a year or two ?
this whole innovation for the sake of innovation thing is so last century
(see a post on crooked timber about a week or so ago, also P Krugman in his blog flagged a New Yorker article on the cult of innovation)
I use R every day but have used Numpy and Scipy and related tools in the past and still on occasion. The package and documentation system in R is excellent. Good packages come with a vignette with examples that lets you quickly get up to speed with a new package and all packages are documented to be accepted at CRAN. A quite impressive variety of statistical and modeling packages are available. There are multiple graphics packages (although I find the standard one the most useful). The R library system I find excellent, especially when incorporating Fortran or C code you have written or obtained. For an old Lisp programmer, R makes perfect sense. The basic most flexible data structure in R is the list with useful feature that you can access elements by index (list) or key (hash) [a common idiom in Lisp]. One the downside standard R is all in memory so big data is not built in. A commercial company, Revolution Analytics I think is the name, has a big data version of R, and there are big data packages for some domains. Python support for big data is more extensive. The database interfaces are workable, and the netcdf4 interface quite usable, but if you need a lot of fast, flexible, external data access I'm certain Phthon is a much better choice. The object model(s) S3 and S4 are different from Python and are more familiar to users of CLOS but if your going to develop a large in-house package Python is a far better language. As always the answer depends on your needs and expertise. Personally I find R and Fortran and C and C++ and Perl make an excellent environment for data analysis and modeling but that is very dependent on my background and needs and lets me explore statistical ideas very efficiently. If I knew that the domain I was working in was reasonably narrow and I wanted to develop larger scale packages instead of varied data analysis I would choose Python. As an example RStan and PyStan seem to stay pretty synchronized but Python has Theano. If your interests are more oriented to statistical learning algorithms Python is the better choice, but if you want to use a wider array of Bayesian statistical analysis easily on data R may be the better choice.
SAS is used because it is much more approachable, whereas both R and Python require a different skill set to use. For R you require both programming and statistical backgrounds, whereas Python has some great packages but requires even more programming chops. If you're willing to hire the new skill set, I would recommend R. It is industry standard, easily extendable (just download a new package), and powerful. If you want to enable your business group to access data directly, look into setting up Tableau. Don't forget that you can get all of these to work on Hadoop if you require a big data solution. Source: I am a big data architect at a leading consulting firm.
In short, both are first-class tools for scientific computing and you should compare and choose them on technical merits basis.
There is rpy2 [http://rpy.sourceforge.net/], providing simple and robust access to R from within Python.
I particularly like what Joyent is doing with their big data analysis. Node.js is catching up to python in performance and in time it should be a very strong server side language for many applications including Data Analysis and Modeling. So don't forget JavaScript. It may be very immature for use in this field but there is no reason that trailblazing can happen shortly with Node.
R and Python allow collaboration between statisticians and engineers and programmers. But if you're an old statistician dependent upon the silo, you can't beat SAS.
Developed by an ex-NSA guy. That vouches for its efficiavy regarding "big data", I guess. Based on my personal experience, it is up to the job. Hipsters need not apply.
TLDR. You are an obedient servant of the corporate monster you work for. I work for a monster too (invented the motor carriage) and I have been arguing with them quite a few times. I told them to fire me, if they don't like my work. Relative to "IT" they are mostly idiots and I tell them when they order me to do idiotic things.
If you like to be an obedient slave, march on. Some day you will reach Stalingrad, where you can freeze to death with other obedient fucktards.
I work in bioinformatics, and use both R and python. The data models in R are stronger than in python, and packages like ggplot are easier to use than matplotlib. That makes it a relatively easy entry. It's also much more similar to SAS than python is. However, R has some big limitations. It is _very_ slow and is a memory clogging beast. It also has some very annoying quirks, like the horrible object model. I find python to be much more flexible, and absolutely required for larger data sets. With the right modules (Numpy, Scipy, matplotlib, pandas, scikit-learn etc) it is equally powerful.
So in the end, I use R primarily for quick and dirty analyses on small data sets, but for anything more elaborate I use python.
I also work at a huge company that uses SAS for many legacy applications. I am also very interested in seeing our company move from the olden days to a newer approach that is more accessible to the employees supporting it, and based on more mainstream, maintainable tech. I've even worked a modernization project related to SAS.
My advice would be as follows:
- Don't force the issue. You likely don't have enough support to make a wholesale change on the scale you would like to see made. If you can, you might try reaching out to the larger community internally, through means such as internal mailing list or community of practice. If your results there are minimal, that is telling. You won't be able to get the support you need to make such a major change.
- Consider alternatives. In my experience, which includes both "SAS as infrastructure" and "data analysis and modeling", particular applications can mean a lot to end users. Changing tools wholesale can be very disruptive and time-consuming. In particular, you are likely not looking at a one-size-fits-all solution. In my experience, a single SAS application would often best be replaced piecemeal, by a slate of applications. As a user, I would vastly prefer something like Matlab to the R/Python route! Where I work, there's also something called ModelCenter which helps some with system-level integration, which can be very important for large companies (even if it is poorly recognized).
It's been my experience that this is an uphill battle. You will need to convince upper management that this is viable in terms of some of the 'intangibles', service, support, maintenance, auditing etc. They may also need corporate signoff on open source. Many companies do not want to worry about ramifications of open source licensing. 'Innovation' is relative. While it is true that R can do many statistical 'things' that are not possible in SAS, SAS can do way more things that are important to corporate governance than R can, and this makes it harder to sell.