Learn R Programming

GPvecchia (version 0.1.7)

createU: create the sparse triangular U matrix for specific parameters

Description

create the sparse triangular U matrix for specific parameters

Usage

createU(vecchia.approx, covparms, nuggets, covmodel = "matern")

Value

list containing the sparse upper triangular U, plus additional objects required for other functions

Arguments

vecchia.approx

object returned by vecchia_specify

covparms

vector of covariance parameters

nuggets

nugget variances -- if a scalar is provided, variance is assumed constant

covmodel

covariance model. currently implemented:

Examples

Run this code
z=rnorm(9); locs=matrix(1:9,ncol=1); vecchia.approx=vecchia_specify(locs,m=5)
U.obj=createU(vecchia.approx,covparms=c(1,2,.5),nuggets=.2)

Run the code above in your browser using DataLab