Skip to contents

This method prints a summary of a PrestoGP model and its parameters.

Usage

# S4 method for class 'PrestoGPModel'
show(object)

Arguments

object

The PrestoGP model object

Examples

data(soil)
soil <- soil[!is.na(soil[,5]),] # remove rows with NA's
y <- soil[,4]                   # predict moisture content
X <- as.matrix(soil[,5:9])
locs <- as.matrix(soil[,1:2])

soil.vm <- new("VecchiaModel", n_neighbors = 10)
soil.vm <- prestogp_fit(soil.vm, y, X, locs)
#> 
#> Beginning iteration 1 
#> Estimating theta... 
#> Estimation of theta complete 
#> Estimating beta... 
#> Estimation of beta complete 
#> Iteration 1 complete 
#> Current penalized likelihood: 486.3325 
#> Current MSE: 9.104869 
#> Beginning iteration 2 
#> Estimating theta... 
#> Estimation of theta complete 
#> Estimating beta... 
#> Estimation of beta complete 
#> Iteration 2 complete 
#> Current penalized likelihood: 486.2433 
#> Current MSE: 9.10771 
#> Beginning iteration 3 
#> Estimating theta... 
#> Estimation of theta complete 
#> Estimating beta... 
#> Estimation of beta complete 
#> Iteration 3 complete 
#> Current penalized likelihood: 486.2433 
#> Current MSE: 9.107593 
show(soil.vm)
#> Matern covariance parameters (theta): 
#> $sigma
#> [1] 10.54812
#> 
#> $scale
#> [1] 15.05129
#> 
#> $smoothness
#> [1] 0.6663408
#> 
#> $nuggets
#> [1] 0.4531993
#> 
#> Regression coefficients (beta): 
#> $Y
#>   NO3.N Total.N   NH4.N     DOC    N20N 
#>       0       0       0       0       0 
#> 
#> $`(Intercept)`
#> (Intercept) 
#>  0.05219032 
#> 
#> Model type: VecchiaModel 
#> Nearest neighbors: 10 
#> Scaling: 1 1 
#> Penalized likelihood: 486.2433 
#> MSE: 9.107593