print.SpATS: Print method for 'SpATS' objects

Description Usage Arguments Details See Also Examples

View source: R/print.SpATS.R

Description

Default print method for objects fitted with SpATS() function.

Usage

1
2
## S3 method for class 'SpATS'
print(x, ...)

Arguments

x

an object of class SpATS as produced by SpATS()

...

further arguments passed to or from other methods. Not yet implemented.

Details

A short summary is printed including: the variable under study (response), the variable containing the genotypes, the spatial model, and the random and fixed components (when appropriate). Besides this information, the number of observations used to fit the model, as well as of those deleted due to missingness or zero weights are reported. Finally, the effective degrees of freedom (effective dimension) of the fitted model and the (REML) deviance is also printed.

See Also

SpATS, summary.SpATS

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(SpATS)
data(wheatdata)
wheatdata$R <- as.factor(wheatdata$row)
wheatdata$C <- as.factor(wheatdata$col)

m0 <- SpATS(response = "yield", spatial = ~ SAP(col, row, nseg = c(10,20), degree = 3, pord = 2), 
 genotype = "geno", fixed = ~ colcode + rowcode, random = ~ R + C, data = wheatdata, 
 control =  list(tolerance = 1e-03))

m0

Example output

Effective dimensions
-------------------------
It.     Deviance           R           Cf(col,row)|colf(col,row)|row
  1 686384.843129       1.196       0.962      11.769      15.563
  2  2107.446777       1.234       3.922      12.391      15.060
  3  2079.185180       1.722       6.767      11.306      13.853
  4  2072.650074       2.628       7.316      10.554      12.547
  5  2069.709184       3.827       7.264      10.199      11.474
  6  2067.893125       5.141       7.153      10.046      10.721
  7  2066.842352       6.330       7.061       9.992      10.215
  8  2066.299268       7.234       6.989       9.987       9.886
  9  2066.044505       7.834       6.933      10.006       9.678
 10  2065.929488       8.199       6.889      10.035       9.552
 11  2065.876579       8.411       6.855      10.066       9.477
 12  2065.851059       8.531       6.829      10.095       9.435
 13  2065.838130       8.600       6.809      10.120       9.411
 14  2065.831319       8.639       6.793      10.142       9.400
 15  2065.827632       8.663       6.782      10.160       9.395
 16  2065.825598       8.678       6.773      10.175       9.393
 17  2065.824460       8.688       6.766      10.187       9.394
 18  2065.823818       8.694       6.761      10.196       9.396
Timings:
SpATS 0.707 seconds
All process 1.256 seconds

Spatial analysis of trials with splines 

Response:                   yield     
Genotypes (as fixed):       geno      
Spatial:                    ~SAP(col, row, nseg = c(10, 20), degree = 3, pord = 2)
Fixed:                      ~colcode + rowcode
Random:                     ~R + C    


Number of observations:        330
Number of missing data:        0
Effective dimension:           149.05
Deviance:                      2065.824

SpATS documentation built on May 31, 2018, 1:04 a.m.