Skip to contents

print prints satpt objects created by satpt().

Usage

# S3 method for class 'satpt'
print(x, digits = max(3, getOption("digits") - 3), ...)

Arguments

x

satpt object to be printed.

digits

Minimal number of significant digits. Default is max(3, getOption("digits") - 3).

...

Arguments passed on to base::print

Examples

data(diagnoses)

# Examining saturation given data collected at different times and
# response bias is possible. For this example, response bias is not present,
# so the standard errors will be the same.

# Saving analysis as R object and printing
res <- satpt::satpt(y = diagnoses$q2, by = diagnoses$wave)
print(x = res, digits = 3)
#> Analysis based on: q2 
#> Saturation achieved?  Yes 
#> 
#> Overall Sample Proportions and Standard Errors
#> ==============================================
#>             y: q2
#> Statistics   Not at all Often  Once Rarely Sometimes
#>   Proportion      0.253 0.075 0.038  0.369     0.266
#>   SE              0.017 0.010 0.008  0.019     0.017