Learn R Programming

micsr (version 0.1-1)

gaze: Short print of the summary of an object

Description

print and print.summary methods often returns long input, which is suitable for the console, but too verbal for a printed output like a book or an article written using quarto. gaze is a generic function which prints a short output

Usage

gaze(x, ...)

# S3 method for lm gaze( x, ..., coef = NULL, digits = max(3L, getOption("digits") - 3L), signif.stars = FALSE )

# S3 method for micsr gaze( x, ..., coef = NULL, digits = max(3L, getOption("digits") - 3L), signif.stars = FALSE )

# S3 method for ivreg gaze( x, ..., coef, digits = max(3L, getOption("digits") - 3L), signif.stars = getOption("show.signif.stars") )

# S3 method for rdrobust gaze(x, ..., first_stage = FALSE)

# S3 method for CJMrddensity gaze(x, ...)

# S3 method for htest gaze(x, ..., digits = 3)

# S3 method for anova gaze(x, ..., digits = 3)

# S3 method for LMtestlist gaze(x, ..., digits = 3)

Value

returns invisibly its first argument

Arguments

x

an object,

...

further arguments for the different methods,

coef

the coefficients to be printed

digits

the number of digits for the lm and the ivreg methods

signif.stars

a boolean indicating whether the stars should be printed

first_stage

a boolean for the rdrobust::rdrobust method, if TRUE the results of the first stage estimation are printed

Examples

Run this code
t.test(extra ~ group, sleep) %>% gaze
lm(dist ~ poly(speed, 2), cars) %>% gaze
lm(dist ~ poly(speed, 2), cars) %>% gaze(coef = "poly(speed, 2)2")

Run the code above in your browser using DataLab