Re: [R] A comment about R:

From: Roger Bivand <Roger.Bivand_at_nhh.no>
Date: Thu 05 Jan 2006 - 04:47:11 EST


On Wed, 4 Jan 2006, Thomas Lumley wrote:

> On Wed, 4 Jan 2006, Roger Bivand wrote:
> > Could I ask for comments on:
> >
> > source(url("http://spatial.nhh.no/R/etc/capabilities.R"), echo=TRUE)
> >
> > as a reproduction of the Stata capabilities session? Both the t test and
> > the chi-square from our side point up oddities. I didn't succeed on
> > putting fit lines on a grouped xyplot, so backed out to base graphics.
> > This could be Swoven, possibly using the RweaveHTML driver.
> >
>
> Personally, I would have used with() for some of these, eg
>
> with(auto, table(rep78, foreign))
> with(auto, chisq.test(table(rep78, foreign)))

Thanks. For Windows users (sorry, I only checked on Linux), a new version of capabilities.R is now available adding the mode="wb" flag to download.file() - the absence of the flag was corrupting the saving of the auto.dta file, because it was not being saved as binary - it is now, checked under R 2.2.0 and 2.2.1 patched under Windows XP.

Roger

>
> and I'm sure that someone will point out the right way to get lines on
> coplot() or xyplot().
>
> Apart from that it looks good.
>
> -thomas
>

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand@nhh.no

______________________________________________
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
Received on Thu Jan 05 06:48:43 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:50 EST