Learn R Programming

GPvecchia (version 0.1.7)

V2covmat: compute covariance matrix from V.ord Do not run this function for large n or n.p!!!

Description

compute covariance matrix from V.ord Do not run this function for large n or n.p!!!

Usage

V2covmat(preds)

Value

Covariance matrix at all locations in original order

Arguments

preds

Object returned by vecchia_prediction()

Examples

Run this code
z=rnorm(5)
locs=matrix(1:5,ncol=1)
vecchia_specify=function(z,locs,m=5,locs.pred=(1:5)+.5)
V2covmat(vecchia_prediction(vecchia.approx,covparms=c(1,2,.5),nuggets=.2))

Run the code above in your browser using DataLab