[R] R code for "Statistical Models in S" ?

Robert Duval rduval at gmail.com
Thu Mar 1 22:36:29 CET 2007


You might want to start looking at the FAQ's

http://cran.r-project.org/faqs.html

in particular

http://cran.r-project.org/doc/FAQ/R-FAQ.html#R-and-S

robert

On 3/1/07, Charilaos Skiadas <skiadas at hanover.edu> wrote:
> I just acquired a copy of "Statistical Models in S", I guess most
> commonly known as the "white book", and realized to my dismay that
> most of the code is not directly executable in R, and I was wondering
> if there was a source discussing the things that are different and
> what the new ways of calling things are.
>
> For instance, the first obstacle was the solder.balance data set. I
> found a "solder" data set in rpart, which is very close to it except
> for the fact that the Panel variable is not a factor, but that's
> easily fixed.
> The first problem is the next two calls, on pages 2 and 3. One is
> "plot(solder.balance)", which is supposed to produce a very different
> plot than it does in R (I actually don't know the name of the plot,
> which is part of the problem I guess). Then one is supposed to call
> "plot.factor(skips ~ Opening + Mask)", which I took to mean:
> "plot(skips ~ Opening + Mask, data=solder)", and that worked, though
> I still haven't been able to make a direct call to plot.factor work
> (I keep getting a "could not find function plot.factor" error).
>
> Anyway, just wondered whether there is some page somewhere that
> discusses these little differences here and there, as I am sure there
> will be a number of other problems such as these along the way.
>
> Haris Skiadas
> Department of Mathematics and Computer Science
> Hanover College
>
> ______________________________________________
> R-help at 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
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list