Learn R and/or data mangement at home October 7 through 11
http://r4stats.com/2013/09/11/learn-r-andor-data-management-from-home-october-7-11/
==
Bob Muenchen (pronounced Min'-chen)
Accredited Professional Statistician(tm)
Manager, Researc
Dear R-Helpers,
I was calling the TukeyHSD function and not getting confidence intervals or
p-values. It turns out this was caused by missing data and the fact that I had
previously turned on R Commander (Rcmdr). John Fox knew that Rcmdr sets
na.action to na.exclude, which causes the problem. I
Hi All,
I now have programming examples for common research tasks done in R, SAS, SPSS
and Stata at http://r4stats.com. The examples fall into the following
categories:
Data Import & Export
Data Management
Enhancing Output
Graphics, ggplot2
Graphics, Traditional
Selecting Variables and Observa
Greetings,
I've just put out the latest version of "The Popularity of Data Analysis
Software" at http://r4stats.com/popularity. This update includes complete data
for 2010, the addition of number of blogs for each software, more coverage of
Statistica, and, where possible, measures regarding th
Hi All,
When I teach an intro workshop on R, I've been minimizing "quote confusion" by
always using quotes around package names in function calls. For example:
install.packages("Hmisc")
update.packages("Hmisc")
library("Hmisc")
citation("Hmisc")
search() # displays package names in quotes
detac
Greeting Listserv Readers,
At http://r4stats.com/popularity I have added plots, data, and/or
discussion of:
1. Scholarly impact of each package across the years
2. The number of subscribers to some of the listservs
3. How popular each package is among Google searches across the years
4. Survey re
>-Original Message-
>From: Joris Meys [mailto:jorism...@gmail.com]
>Sent: Friday, June 25, 2010 10:10 PM
>To: Muenchen, Robert A (Bob)
>Cc: Dario Solari; r-help@r-project.org
>Subject: Re: [R] Popularity of R, SAS, SPSS, Stata...
>
>>>I had taken the oppos
>-Original Message-
>From: r-help-boun...@r-project.org
[mailto:r-help-boun...@r-project.org]
>On Behalf Of Muenchen, Robert A (Bob)
>Sent: Friday, June 25, 2010 3:08 PM
>To: Joris Meys; Dario Solari
>Cc: r-help@r-project.org
>Subject: Re: [R] Popularity of R, SAS
I had taken the opposite tack with Google Trends by subtracting keywords
like:
SAS -shoes -airlines -sonar...
but never got as good results as that beautiful "X code for" search.
When you see the end-of-semester panic bumps in traffic, you know you're
nailing it!
I see that there's a car, the R
>-Original Message-
>From: Liviu Andronic [mailto:landronim...@gmail.com]
>Sent: Friday, June 25, 2010 7:15 AM
>To: Muenchen, Robert A (Bob)
>Cc: r-help@r-project.org
>Subject: Re: [R] Popularity of R, SAS, SPSS, Stata...
>
>On Sun, Jun 20, 2010 at 2:31 PM,
>-Original Message-
>From: r-help-boun...@r-project.org
[mailto:r-help-boun...@r-project.org]
>On Behalf Of Dr. David Kirkby
>Sent: Tuesday, June 22, 2010 7:49 PM
>To: r-help@r-project.org
>Subject: Re: [R] Popularity of R, SAS, SPSS, Stata...
...
>
>I don't know how practical it is with
vor...@gmail.com]
>Sent: Monday, June 21, 2010 9:12 AM
>To: Muenchen, Robert A (Bob)
>Cc: ted.hard...@manchester.ac.uk; r-help@r-project.org
>Subject: Re: [R] Popularity of R, SAS, SPSS, Stata...
>
>One should also take into account the other R list. For example, as of
>today the n
>-Original Message-
>From: r-help-boun...@r-project.org
[mailto:r-help-boun...@r-project.org]
>On Behalf Of Joris Meys
>Sent: Monday, June 21, 2010 5:32 AM
>To: Patrick Burns
>Cc: r-help@r-project.org
>Subject: Re: [R] Popularity of R, SAS, SPSS, Stata...
>
>On Mon, Jun 21, 2010 at 11:15
t;that one class I barely survived". I debated what to
call that page and ended up using "Analytical Software". I'm not so
happy with that either. -Bob
>
>On 20/06/2010 23:46, Muenchen, Robert A (Bob) wrote:
>>
>>
>>> -Original Message-----
>-Original Message-
>From: r-help-boun...@r-project.org
[mailto:r-help-boun...@r-project.org]
>On Behalf Of Ted Harding
>Sent: Sunday, June 20, 2010 9:01 PM
>To: r-help@r-project.org
>Subject: Re: [R] Popularity of R, SAS, SPSS, Stata...
...
>
>John and I discussed the snowball idea at so
>-Original Message-
>From: r-help-boun...@r-project.org
[mailto:r-help-boun...@r-project.org]
>On Behalf Of Muenchen, Robert A (Bob)
>Sent: Sunday, June 20, 2010 6:43 PM
>To: Hadley Wickham; ted.hard...@manchester.ac.uk
>Cc: r-help@r-project.org
>Subject: Re: [R]
>-Original Message-
>From: r-help-boun...@r-project.org
[mailto:r-help-boun...@r-project.org]
>On Behalf Of Hadley Wickham
... What about snowball
>sampling with R-help as an initial frame?
That's an interesting idea! I could put together a Two-item web survey:
1. What stat package do
www.R-project.org.
>
>So instead of searching for "R", searching for "R Development Core Team"
>might give better results. And same thing for SAS or any other
>softwares.
>
>If that doesn't help, just forget it!
>
>Ivan
>
>
>
>Le 20 juin
>-Original Message-
>From: r-help-boun...@r-project.org
[mailto:r-help-boun...@r-project.org]
>On Behalf Of Ted Harding
>Sent: Sunday, June 20, 2010 3:42 PM
>To: r-help@r-project.org
>Subject: Re: [R] Popularity of R, SAS, SPSS, Stata...
>
>
>I've given thought in the past to the question
>I wonder if there are any capture-recapture type methodologies for
>estimating open-source software usage? Another idea would be to
>combine with some other known numbers, e.g. book sales, conference
>attendance etc. You'd need personal information to link the data sets
>together.
>
>Hadley
This
gt;
>On Jun 20, 2010, at 10:24 AM, Stefan Grosse wrote:
>
>> Am 20.06.2010 15:31, schrieb Muenchen, Robert A (Bob):
>>
>>> I've been fiddling around with various ways to estimate the
>>> popularity
>>> of R, SAS, SPSS, Stata, JMP, Minitab, Statist
15:31, schrieb Muenchen, Robert A (Bob):
>
>> I've been fiddling around with various ways to estimate the
popularity
>> of R, SAS, SPSS, Stata, JMP, Minitab, Statistica, Systat, BMDP, S-
>PLUS,
>> R-PLUS and Revolution R. It's not an easy task. You can see what I'v
Hi All,
I've been fiddling around with various ways to estimate the popularity
of R, SAS, SPSS, Stata, JMP, Minitab, Statistica, Systat, BMDP, S-PLUS,
R-PLUS and Revolution R. It's not an easy task. You can see what I've
come up with so far at http://r4stats.com/popularity . I'm sure people
will h
Dear R-Helpers,
If you know of any Stata users looking to learn R, our book "R for Stata
Users" finally shipped this week. A software snag delayed the printing
of all Springer books for quite a few weeks. A description of that book,
and reviews of its predecessor, "R for SAS and SPSS Users" is at
Hi All,
This was a very interesting question & I enjoyed reading everyone's
responses. I've played around with it and summarized some of the
variations below.
Cheers,
Bob
# A fun example of how a list can store both a function
# and data for that function.
# Create a list that contains both a
> 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
t;On Behalf Of Muenchen, Robert A (Bob)
>Sent: Wednesday, May 12, 2010 8:54 AM
>To: r-help@r-project.org
>Subject: [R] Data Mining Survey
>
>Dear R-Helpers,
>
>SAS Institute just mailed out the notice below regarding a survey of
>people who do data mining. To help keep t
Oops! I forgot that R-help strips out HTML. When I checked the link, it
referenced SAS.COM. I've written Karl Rexer for a more appropriate one.
More soon. -Bob
>-Original Message-
>From: r-help-boun...@r-project.org
[mailto:r-help-boun...@r-project.org]
>On Behalf Of Muen
Dear R-Helpers,
SAS Institute just mailed out the notice below regarding a survey of
people who do data mining. To help keep the survey from becoming biased
toward commercial software, I thought it would be good to post it here
as well.
Cheers,
Bob
Fourth Annual Data Miner Survey
Rexer Analytics
Hi Paul,
Sorry I didn't get to that subject in the first edition of R for SAS and SPSS
Users. Several of the options people have mentioned will be in the second
edition, although that's about a year off. I did get them added to R for Stata
Users, due out in early April.
Cheers,
Bob
>-Ori
Hi Liviu,
Thanks for those suggestions. I've made the changes and added you to the list
of contributors.
Cheers,
Bob
> -Original Message-
> From: Liviu Andronic [mailto:landronim...@gmail.com]
> Sent: Thursday, January 14, 2010 7:06 AM
> To: Muenchen, Robert
>From: b.rowling...@googlemail.com [mailto:b.rowling...@googlemail.com] On
>Behalf Of Barry Rowlingson
>Sent: Wednesday, January 13, 2010 7:03 PM
>To: Muenchen, Robert A (Bob)
>Cc: r-help@r-project.org
>Subject: Re: [R] Updated comparison table for SAS-SPSS Add-ons and R Func
Hi All,
I have substantially expanded the table that compares SAS and SPSS
add-on modules to somewhat equivalent R packages. This new version is
at:
http://r4stats.com/add-on-modules
and I would very much appreciate any feedback you might have on it.
The site http://r4stats.com is the replacemen
AM, Muenchen, Robert A (Bob)
wrote:
> Hi Liviu,
>
> Yes, I selected all the repositories on the list, including things like CRAN
> (extras), the four Bioconductor (BioC) sites, and R-Forge.
>
> Cheers,
> Bob
>
> -Original Message-
> From: Liviu Andronic
: Muenchen, Robert A (Bob)
Cc: r-help@r-project.org
Subject: Re: [R] R Packages Crack the 3,000 Mark!
Hello
On 11/24/09, Muenchen, Robert A (Bob) wrote:
> I don't know if this has been reported before, but according to Henrique
> Dallazuanna's program (below) the number of R packages
Hi All,
I don't know if this has been reported before, but according to Henrique
Dallazuanna's program (below) the number of R packages has exceeded the
3,000 mark. The count today is 3,175. I ran this just a couple of months
ago & the number was still in the high 2,000s, so it must be fairly
r
0.043 |
|---|
...
-Original Message-
From: David Scott [mailto:d.sc...@auckland.ac.nz]
Sent: Friday, October 16, 2009 8:42 PM
To: Muenchen, Robert A (Bob)
Cc: ted.hard...@manchester.ac.uk; r-help@r-project.org
Subject: Re: [R] Frequencies, proportions & cumulative proportions
Muenchen, Robert A (Bob)
Ted,
I know how to do that. It's just such a standard display in SAS, SPSS
and Stata that I figured someone had done it and I had just overlooked
it.
Thanks!
Bob
I don't think there is a ready-made one, but it is very little
effort to make your own:
mkMyTable <- function(X){
Table <- data.f
Dear R-Helpers,
I've looked high and low for a function that provides frequencies,
proportions and cumulative proportions side-by-side. Below is the table
I need. Is there a function that already does it?
Thanks,
Bob
> # Generate some test scores
> myValues <- c(70:95)
> Score <- ( sample( myVal
Hi Michael,
I've used the R plug-in and really like it. You can read my instructions
on how to install and use it by going to Amazon.com, searching for the
book, "R for SAS and SPSS Users" and then "search inside the book" for
the section, "Running R from SPSS". I've only got about 3 pages on it
(
Since stdin seemed simpler I figured textConnection must have some
advantage.
Thanks!
Bob
From: Gabor Grothendieck [mailto:ggrothendi...@gmail.com]
Sent: Saturday, July 11, 2009 6:00 PM
To: Muenchen, Robert A (Bob)
Cc: R-help@r-project.org
Subject: Re: [R] Reading data entered within an
Dear R-helpers,
I know of two ways to reading data within an R program, using
textConnection and stdin (demo program below). I've Googled about and
looked in several books for comparisons of the two approaches but
haven't found anything. Are there any particular advantages or
disadvantages to thes
Hi Folks,
SAS Institute is adding official support for R:
http://support.sas.com/rnd/app/studio/Rinterface2.html
Cheers,
Bob
=
Bob Muenchen (pronounced Min'-chen),
Manager, Research Computing Support
U of TN Office of Infor
That's a great idea. I know of no commercial vendors who provide such
detailed info.
Bob
-Original Message-
From: Gabor Grothendieck [mailto:ggrothendi...@gmail.com]
Sent: Monday, January 26, 2009 7:52 PM
To: Muenchen, Robert A (Bob)
Cc: R-help@r-project.org
Subject: Re: [R] The Qu
Hi All,
We have all had to face skeptical colleagues asking if software made by
volunteers could match the quality and accuracy of commercially written
software. Thanks to the prompting of a recent R-help thread, I read, "R:
Regulatory Compliance and Validation Issues, A Guidance Document for t
Hi Ricardo,
You can search for comparisons by entering the packages that interest
you at:
http://finzi.psych.upenn.edu/search.html
Michael Mitchell wrote an interesting comparison of SAS, SPSS, Stata and
R at:
http://www.ats.ucla.edu/stat/technicalreports/
That report says little about R, b
Hi Jon,
Here's one way.
> x <- c(1,2,3,4,NaN)
> y <- c(1,2,NaN,4,5)
>
> myDF <- data.frame(x,y)
> myDF
x y
1 1 1
2 2 2
3 3 NaN
4 4 4
5 NaN 5
>
> myDF[ is.na(myDF) ] <- NA
> myDF
x y
1 1 1
2 2 2
3 3 NA
4 4 4
5 NA 5
Cheers,
Bob
=
I think I did that once by accidentally placing the .Rprofile in two
places. In Windows I think that was the directory that contains the R
executable and in My Documents. I think you can also cause this by
setting your working directory in your .Rprofile with setwd() and then
it runs any .Rprofile
Dear R-Helpers,
I'm fiddling with my .Rprofile in Windows XP & R 2.7.0 Beta. I prefer to
manually save my workspace but automatically save my command history via
the .Rprofile. That is working fine once I found that "utils::" was
required before the loadhistory & savehistory functions. What I woul
riginal Message-
> From: Peter Dalgaard [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 04, 2008 12:18 PM
> To: Muenchen, Robert A (Bob)
> Cc: [EMAIL PROTECTED]
> Subject: Re: [R] NA vs.
>
> Muenchen, Robert A (Bob) wrote:
> > Dear R-Helpers,
> >
> >
Dear R-Helpers,
Why does R show character missing values in vectors as NA and when
stored in a data frame as ? I've searched but did not find an
explanation.
Thanks,
Bob
> gender <- c("f","f","f",NA,"m","m","m","m")
> gender
[1] "f" "f" "f" NA "m" "m" "m" "m" #here it lacks brackets.
>
> q1 <
Dear HelpeRs,
I'm confused about the role of quotes around package names on the
library and detach functions. Books on R use both approaches:
library(Hmisc)
describe(mydata)
detach(package:Hmisc)
and
library("Hmisc")
describe(mydata)
detach("package:Hmisc")
The help file for detach says "quote
Thank you all very much!
Bob
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> project.org] On Behalf Of Muenchen, Robert A (Bob)
> Sent: Saturday, March 08, 2008 10:49 AM
> To: [EMAIL PROTECTED]
> Subject: [R] Non-visible functions are aste
Dear R-Helpers,
I suspect I'm about to ask a FAQ, but I haven't been able to find an
answer in the FAQ, AItR or an R Site Search. When I look at the methods
of summary (below) it says, "Non-visible functions are asterisked". I
looked at the help file for summary.princomp, which did not comment on
fferent packages in this context?
Thanks,
Bob
> -Original Message-
> From: Henrique Dallazuanna [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 12, 2008 9:58 AM
> To: Muenchen, Robert A (Bob)
> Cc: [EMAIL PROTECTED]
> Subject: Re: [R] How many R packages?
>
>
Hi All,
I searched around to find the number of R packages currently available,
but didn't find anything, so I choose all repositories & told it to
install. The list contained about 2,856 (correcting roughly for those
installed). But the list includes repetitions such as 19 names that
begin with "
That's a dandy little program but the apply with lapply blew my mind! I had to
pick it apart to figure out what it was doing. Perhaps others will find this
expanded version useful:
# Make up some repeated measures data with measures at 4 times.
t1<-c(1,2,3,4,5)
t2<-c(2,3,3,5,5)
t3<-c(3,3,4,4,4)
This is a popular one:
http://www.7-zip.org/
Cheers,
Bob
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> project.org] On Behalf Of Duncan Murdoch
> Sent: Sunday, January 27, 2008 6:37 PM
> To: David Scott
> Cc: [EMAIL PROTECTED]
> Subject: Re: [R] [OT] Open sour
al Message-
> From: Marc Schwartz [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 24, 2008 11:32 AM
> To: Muenchen, Robert A (Bob)
> Cc: [EMAIL PROTECTED]
> Subject: Re: [R] Barplot w/ single stacked bar
>
> Muenchen, Robert A (Bob) wrote:
> > Hi All,
> >
>
Hi All,
I can get the barplot function to do many types of plots, stacked or
otherwise. However, I cannot get it to do a *single* stacked bar. I've
searched several books & listserv archives to no avail. I suspect I'm
missing the obvious from the help file!
I can reach my goal in ggplot2, althoug
Hi All,
I'm stumped on something that must be trivial. I created a correlation
matrix on 4 variables (6 correlations) using Hmisc's rcorr function. I
wanted to correct the P-value matrix for the number of tests done, so I
ran it through the p.adjust function. That function adjusted for the 12
p-va
You probably don't want to spend time figuring out the .spo format. From
SPSS 16 on, that format is obsolete and replaced by the Unicode
XML-based .spv file. SPSS 16 users need a separate Legacy Viewer to read
.spo files. -Bob
=
Bob Muenchen
Hi All,
A few weeks ago I suggested that it would be nice to be able to submit
lines from the help files for execution. You can cut and paste them into
the console, or enter example(function) to run them all. However, I
often find myself wanting to run just a line or two, or even parts of a
line t
paste into Notepad was selected.
Very strange!
Bob
P.S. almost the testing has been with the ?data.frame and ?summary
examples.
> -Original Message-
> From: Duncan Murdoch [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 20, 2007 7:59 PM
> To: Muenchen, Robert A (Bob)
Does this look like a bug? If so, is there a different way to report it?
Thanks, Bob
> -Original Message-
> From: Dirk Eddelbuettel [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 20, 2007 10:17 AM
> To: Muenchen, Robert A (Bob)
> Subject: Re: [R] Cutting & pa
Stephan Grosse replied:
>
> What I do not understand is why you not just type
example(yourcommand)?
>
> Stefan
That's a good question. I want to play around with variations of the
examples rather than run them exactly as they are.
Thanks,
Bob
__
R-h
Hi All,
When I cut & paste help file examples into a script window, about half
the time it pastes as a single long line.
The steps I follow are:
1. Open a help file e.g. ?data.frame.
2. Select the examples at the bottom.
3. Choose File: Copy.
4. Return to the console.
5. Choose File: New script
Hi Talbot,
I just had that question a couple of weeks ago. Here's the thread:
RSiteSearch("Saving results from Linux command line")
Thomas Lumley concluded with:
There could still be functions that divert a copy of all the output to a
file, for example. And indeed there are.
sink("transcript.t
68 matches
Mail list logo