Learn R Programming

FRK (version 2.3.2)

Fixed Rank Kriging

Description

A tool for spatial/spatio-temporal modelling and prediction with large datasets. The approach models the field, and hence the covariance function, using a set of basis functions. This fixed-rank basis-function representation facilitates the modelling of big data, and the method naturally allows for non-stationary, anisotropic covariance functions. Discretisation of the spatial domain into so-called basic areal units (BAUs) facilitates the use of observations with varying support (i.e., both point-referenced and areal supports, potentially simultaneously), and prediction over arbitrary user-specified regions. `FRK` also supports inference over various manifolds, including the 2D plane and 3D sphere, and it provides helper functions to model, fit, predict, and plot with relative ease. Version 2.0.0 and above also supports the modelling of non-Gaussian data (e.g., Poisson, binomial, negative-binomial, gamma, and inverse-Gaussian) by employing a generalised linear mixed model (GLMM) framework. Zammit-Mangion and Cressie describe `FRK` in a Gaussian setting, and detail its use of basis functions and BAUs, while Sainsbury-Dale, Zammit-Mangion, and Cressie describe `FRK` in a non-Gaussian setting; two vignettes are available that summarise these papers and provide additional examples.

Copy Link

Version

Install

install.packages('FRK')

Monthly Downloads

668

Version

2.3.2

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Andrew ZammitMangion

Last Published

January 16th, 2026

Functions in FRK (2.3.2)

SRE.predict

STsphere

Space-time sphere
TensorP

Tensor product of basis functions
auto_BAUs

Automatic BAU generation
STplane

plane in space-time
combine_basis

Combine basis functions
df_to_SpatialPolygons

Convert data frame to SpatialPolygons
auto_basis

Automatic basis-function placement
coef_uncertainty

Uncertainty quantification of the fixed effects
SpatialPolygonsDataFrame_to_df

SpatialPolygonsDataFrame to df
local_basis

Construct a set of local basis functions
loglik

(Deprecated) Retrieve log-likelihood
distance

Compute distance
dist-matrix

Distance Matrix Computation from Two Matrices
manifold-class

manifold
initialize,manifold-method

manifold
isea3h

ISEA Aperture 3 Hexagon (ISEA3H) Discrete Global Grid
measure-class

measure
nbasis

Number of basis functions
plot_spatial_or_ST

Plot a Spatial*DataFrame or STFDF object
plot

Plot predictions from FRK analysis
worldmap

World map
manifold

Retrieve manifold
show_basis

Show basis functions
remove_basis

Removes basis functions
sphere

sphere
draw_world

Draw a map of the world with country boundaries.
distances

Pre-configured distances
nres

Return the number of resolutions
type

Type of manifold
observed_BAUs

Observed (or unobserved) BAUs
plane

plane
info_fit

Retrieve fit information for SRE model
plotting-themes

Plotting themes
opts_FRK

FRK options
eval_basis

Evaluate basis functions
real_line

real line
BAUs_from_points

Creates pixels around points
data.frame<-

Basis-function data frame object
AIRS_05_2003

AIRS data for May 2003
Basis

Generic basis-function constructor
FRK

Construct SRE object, fit and predict
Basis_obj-class

Basis functions
SRE-class

Spatial Random Effects class
NOAA_df_1990

NOAA maximum temperature data for 1990--1993
Am_data

Americium soil data
MODIS_cloud_df

MODIS cloud data