[Rd] Trivial formatting typo in summary(lm()) (PR#10480)

Peter Dalgaard P.Dalgaard at biostat.ku.dk
Wed Dec 5 19:08:51 CET 2007


maechler at stat.math.ethz.ch wrote:
> I'm about to commit a fix to this  "age old" typo,
> using "R-squared" in both cases as Jeff suggests,
> unless some R-corer tells me I should not.
>
> Yes, indeed, two *.Rout.save files need to be replaced too,
> but I don't think that this --- and the fact that the output in many
> books will eventually be "wrong" by a difference of 
>       ' "r" - "R" '
> would be good enough reason to keep this inconsistency.
>
> Ok?
>   
I think so. (At least one of the books is in the process of being
updated anyway...)

The thing NOT to do (or at least be very careful with) is to mess with
things that are actually NAMES of something (like the "Sum of Sq" in
some anova() output), because someone might be using them for indexing.

> Martin
>
>
>   
>>>>>> "JR" == Jeffrey Racine <racinej at mcmaster.ca>
>>>>>>     on Fri, 30 Nov 2007 19:40:12 +0100 (CET) writes:
>>>>>>             
>
>     JR> Full_Name: Jeffrey Racine
>     JR> Version: 2.6.1 and previous...
>     JR> OS: FreeBSD
>     JR> Submission from: (NULL) (130.113.139.86)
>
>
>     JR> Hi.
>
>     JR> I almost feel bad reporting this, but here goes.
>
>     JR> The summary() for lm() (and possibly others?) uses a capitalized `S' in Multiple
>     JR> R-Squared but a lowercase `s' in Adjusted R-squared. For instance,
>
>     JR> Residual standard error: 0.5608 on 202 degrees of freedom
>     JR> Multiple R-Squared: 0.2308,     Adjusted R-squared: 0.2232 
>     JR> F-statistic:  30.3 on 2 and 202 DF,  p-value: 3.103e-12 
>
>     JR> Perhaps they both ought to be lowercase? Again, truly trivial but perhaps it
>     JR> adds to the overall polish...
>
>     JR> -- Jeff
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>   


-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-devel mailing list