Re: [R] controlling number of decimals printed in anova tables?

2009-02-16 Thread Michael Friendly
Thanks, Gabor No, that wasn't it at all. In print.anova, I found: if (length(i <- grep("Df$", cn))) zap.i <- zap.i[!(zap.i %in% i)] so it only recognizes "Df", not "df" as a column name prefix to print as integers. -Michael Gabor Grothendieck wrote: Or safer: df <- as.integer(rou

Re: [R] controlling number of decimals printed in anova tables?

2009-02-16 Thread Dieter Menne
Gabor Grothendieck gmail.com> writes: > > On Mon, Feb 16, 2009 at 11:08 AM, Dieter Menne > > Yes, with as.integer(round(...)) It looks like this: > > > modelFit.glm(berk.mod2) > Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 > > > modelFit.glm(berk.mod2) > Analysis of Deviance

Re: [R] controlling number of decimals printed in anova tables?

2009-02-16 Thread Gabor Grothendieck
On Mon, Feb 16, 2009 at 11:08 AM, Dieter Menne wrote: > Gabor Grothendieck gmail.com> writes: > >> >> Or safer: >> >> df <- as.integer(round(...)) >> > > Did you try? I believe it is a problem of printCoefmat that has quite > a few options for special column, but none for df. Ask Martin Mächler.

Re: [R] controlling number of decimals printed in anova tables?

2009-02-16 Thread Dieter Menne
Gabor Grothendieck gmail.com> writes: > > Or safer: > > df <- as.integer(round(...)) > Did you try? I believe it is a problem of printCoefmat that has quite a few options for special column, but none for df. Ask Martin Mächler. Dieter __ R-help@r-

Re: [R] controlling number of decimals printed in anova tables?

2009-02-16 Thread Gabor Grothendieck
Or safer: df <- as.integer(round(...)) On Mon, Feb 16, 2009 at 10:54 AM, Gabor Grothendieck wrote: > Try this: > > On Mon, Feb 16, 2009 at 9:02 AM, Michael Friendly wrote: >> For glm() models, I often find both the print() and summary() method >> disappointing if my main interest >> is seeing h

Re: [R] controlling number of decimals printed in anova tables?

2009-02-16 Thread Gabor Grothendieck
Try this: On Mon, Feb 16, 2009 at 9:02 AM, Michael Friendly wrote: > For glm() models, I often find both the print() and summary() method > disappointing if my main interest > is seeing how well a given model fits. A basic display would just compare > the null model to to my model. > > I wrote th

[R] controlling number of decimals printed in anova tables?

2009-02-16 Thread Michael Friendly
For glm() models, I often find both the print() and summary() method disappointing if my main interest is seeing how well a given model fits. A basic display would just compare the null model to to my model. I wrote the function below based on code in some package. How can I make it so that the