Extract the Matern (theta) parameters from a PrestoGP model.
get_theta-PrestoGPModel-method.Rd
This method extracts a list containing the Matern variance/covariance parameters from a PrestoGP model.
Value
A list containing the following elements:
- sigma:
A vector containing the estimates of the variance parameter sigma for each outcome.
- scale:
A vector containing the estimates of the the scale parameter(s) for each outcome.
- smoothness:
A vector containing the estimates of the smoothness parameter for each outcome.
- nuggets:
A vector containing the estimates of the nugget variance for each outcome.
- correlation:
A matrix containing the estimates of the correlations between outcomes. Omitted for univariate models.
References
Messier, K.P. and Katzfuss, M. "Scalable penalized spatiotemporal land-use regression for ground-level nitrogen dioxide", The Annals of Applied Statistics (2021) 15(2):688-710.
Porcu, E., Bevilacqua, M., Schaback, R., and Oates RJ. "The Matérn Model: A Journey Through Statistics, Numerical Analysis and Machine Learning", Statistical Science (2024) 39(3):469-492.
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: 487.1901
#> 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.8725
#> Current MSE: 9.107242
#> Beginning iteration 3
#> Estimating theta...
#> Estimation of theta complete
#> Estimating beta...
#> Estimation of beta complete
#> Iteration 3 complete
#> Current penalized likelihood: 486.8121
#> Current MSE: 9.107422
#> Beginning iteration 4
#> Estimating theta...
#> Estimation of theta complete
#> Estimating beta...
#> Estimation of beta complete
#> Iteration 4 complete
#> Current penalized likelihood: 486.5639
#> Current MSE: 9.107215
#> Beginning iteration 5
#> Estimating theta...
#> Estimation of theta complete
#> Estimating beta...
#> Estimation of beta complete
#> Iteration 5 complete
#> Current penalized likelihood: 486.561
#> Current MSE: 9.10744
#> Beginning iteration 6
#> Estimating theta...
#> Estimation of theta complete
#> Estimating beta...
#> Estimation of beta complete
#> Iteration 6 complete
#> Current penalized likelihood: 486.561
#> Current MSE: 9.10744
get_theta(soil.vm)
#> $sigma
#> [1] 10.27323
#>
#> $scale
#> [1] 15.52147
#>
#> $smoothness
#> [1] 0.7239437
#>
#> $nuggets
#> [1] 0.8058901
#>