Skip to content

query about msummary() #814

@nicholasjhorton

Description

@nicholasjhorton

I had thought that msummary() suppressed the printing of asterisks. But then a student asked in class about this:

suppressPackageStartupMessages(library(mosaic))
my_mod <- lm(pcs ~ age, data = HELPrct)
msummary(my_mod)
#>             Estimate Std. Error t value Pr(>|t|)    
#> (Intercept) 59.45498    2.33875   25.42  < 2e-16 ***
#> age         -0.31993    0.06412   -4.99 8.65e-07 ***
#> 
#> Residual standard error: 10.51 on 451 degrees of freedom
#> Multiple R-squared:  0.05232,    Adjusted R-squared:  0.05021 
#> F-statistic:  24.9 on 1 and 451 DF,  p-value: 8.652e-07

Created on 2026-04-01 with reprex v2.1.1

Are the asterisks here appropriate (given that the legend is suppressed)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions