Learn R Programming

cocons (version 0.1.5)

Covariate-Based Covariance Functions for Nonstationary Spatial Modeling

Description

Estimation, prediction, and simulation of nonstationary Gaussian process with modular covariate-based covariance functions. Sources of nonstationarity, such as spatial mean, variance, geometric anisotropy, smoothness, and nugget, can be considered based on spatial characteristics. An induced compact-supported nonstationary covariance function is provided, enabling fast and memory-efficient computations when handling densely sampled domains.

Copy Link

Version

Install

install.packages('cocons')

Monthly Downloads

200

Version

0.1.5

License

GPL (>= 3)

Maintainer

Federico Blasi

Last Published

December 10th, 2025

Functions in cocons (0.1.5)

getBoundariesV3

Simple build of boundaries (v3)
getCIs

Compute approximate confidence intervals for a coco object
getScale

Fast and simple standardization for the design matrix.
getModelLists

Builds the necessary input for building covariance matrices
getCovMatrix

Covariance matrix for "coco" class
getDensityFromDelta

Based on a specific taper scale (delta), retrieves the density of the covariance matrix.
getSpatEffects

Evaluates the spatially-varying functions from a coco object at locs
getSpatMean

Computes the spatial mean of a (fitted) coco object
plotOptimInfo

Plot log info detailed
show

Show Method for Coco Class
holes

Holes Data Set
getBoundariesV4

Simple build of boundaries
holes_bm

Holes with trend + multiple realizations Data Set
getCRPS

Based on a set of predictions computes the Continuous Ranked Probability Score
getLogScore

Based on a set of predictions computes the Log-Score
getLoglik

Retrieve the loglikelihood value
getHessian

getHessian
stripes

Stripes Data Set
summary

Summary Method for Coco Class
getEstims

Retrieve estimates from a fitted coco object
getDesignMatrix

Create an efficient design matrix based on a list of aspect models
getModHess

Retrieves the modified inverse of the hessian
sumsmoothlone

smoothed-L1 penalization over the covariate-driven parameters
is.formula

check whether an R object is a formula
plot,coco,missing-method

Plot Method for coco objects
getBIC

Retrieve BIC
cocoSim

Marginal and conditional simulation of nonstationary Gaussian processes
GetNeg2loglikelihoodProfile

GetNeg2loglikelihoodProfile
GetNeg2loglikelihoodTaper

GetNeg2loglikelihoodTaper
coco-class

An S4 class to store information
coco

Creates a coco S4 object
GetNeg2loglikelihoodREML

GetNeg2loglikelihoodREML
GetNeg2loglikelihood

GetNeg2loglikelihood
cov_rns_pred

Dense covariance function
cov_rns_classic

Dense covariance function (classic parameterization)
GetNeg2loglikelihoodTaperProfile

GetNeg2loglikelihoodTaperProfile
cocoPredict

Prediction for coco objects
cocoOptim

Optimizer for coco objects
cocons-package

Covariate-based Covariance Functions for Nonstationary Gaussian Processes
cov_rns

Dense covariance function (difference parameterization)
getBoundariesV2

Simple build of boundaries (v2)
getBoundaries

Simple build of boundaries
getAIC

Retrieve AIC
cov_rns_taper

Sparse covariance function
cov_rns_taper_pred

Sparse covariance function