Skip to contents

Function to print the results of a call to the ata function.

Usage

# S3 method for class 'ata'
print(x, ...)

Arguments

x

object resulting from a call to the ata function

...

further arguments passed to print

Details

print.ata simply prints summary.ata.

Value

A summary.ata matrix, invisibly.

Author

Daniel Murphy

See also

Examples

x <- ata(GenIns)

## Print ata factors rounded to 3 decimal places, the summary.ata default
print(x) 
#>       dev
#> origin   1-2   2-3   3-4   4-5   5-6   6-7   7-8   8-9  9-10
#>   1    3.143 1.543 1.278 1.238 1.209 1.044 1.040 1.063 1.018
#>   2    3.511 1.755 1.545 1.133 1.084 1.128 1.057 1.086    NA
#>   3    4.448 1.717 1.458 1.232 1.037 1.120 1.061    NA    NA
#>   4    4.568 1.547 1.712 1.073 1.087 1.047    NA    NA    NA
#>   5    2.564 1.873 1.362 1.174 1.138    NA    NA    NA    NA
#>   6    3.366 1.636 1.369 1.236    NA    NA    NA    NA    NA
#>   7    2.923 1.878 1.439    NA    NA    NA    NA    NA    NA
#>   8    3.953 2.016    NA    NA    NA    NA    NA    NA    NA
#>   9    3.619    NA    NA    NA    NA    NA    NA    NA    NA
#>   smpl 3.566 1.746 1.452 1.181 1.111 1.085 1.053 1.075 1.018
#>   vwtd 3.491 1.747 1.457 1.174 1.104 1.086 1.054 1.077 1.018

## Round to 4 decimal places and print cells corresponding 
## to future observations as blanks.
print(summary(x, digits=4), na.print="") 
#>       dev
#> origin    1-2    2-3    3-4    4-5    5-6    6-7    7-8    8-9   9-10
#>   1    3.1432 1.5428 1.2783 1.2377 1.2092 1.0441 1.0404 1.0630 1.0177
#>   2    3.5106 1.7555 1.5453 1.1329 1.0845 1.1281 1.0573 1.0865       
#>   3    4.4485 1.7167 1.4583 1.2321 1.0369 1.1200 1.0606              
#>   4    4.5680 1.5471 1.7118 1.0725 1.0874 1.0471                     
#>   5    2.5642 1.8730 1.3615 1.1742 1.1383                            
#>   6    3.3656 1.6357 1.3692 1.2364                                   
#>   7    2.9228 1.8781 1.4394                                          
#>   8    3.9533 2.0157                                                 
#>   9    3.6192                                                        
#>   smpl 3.5661 1.7456 1.4520 1.1810 1.1112 1.0848 1.0527 1.0748 1.0177
#>   vwtd 3.4906 1.7473 1.4574 1.1739 1.1038 1.0863 1.0539 1.0766 1.0177