Learn R Programming

desk (version 1.1.2)

print.desk: Alternative Console Output for Regression- and Test-results

Description

This function implements an S3 method for printing regression- and test-results generated by functions of the desk package. Used for internal purposes.

Usage

# S3 method for desk
print(x, details, digits = 4, ...)

Value

No return value. Called for side effects.

Arguments

x

object of class desk to be printed to the console.

details

logical value indicating whether details of object x should be printed.

digits

number of digits to round to (only output).

...

any argument that print() accepts.

Examples

Run this code
## Simple regression model
tip.est <- ols (y ~ x, data = data.tip)

## Check its class
class(tip.est)
#> [1] "desk" "lm"

## Standard regression output
print(tip.est) # same as tip.est

## Regression output with details rounded to 2 digits
print(tip.est, details = TRUE, digits = 2)

Run the code above in your browser using DataLab