sk_pars: Initialize Kronecker covariance function parameters for a sk...

View source: R/sk_pars.R

sk_parsR Documentation

Initialize Kronecker covariance function parameters for a sk grid

Description

Returns a parameter list defining the Kronecker covariance model for g, with default initial values assigned to parameters based on the grid dimensions and sample variance of observed data.

Usage

sk_pars(g, pars = "gau", fill = "initial")

Arguments

g

list, a sk grid list (or any other object accepted by sk)

pars

character or list defining kernels accepted by sk_pars_make

fill

character, either 'initial', 'lower' or 'upper'

Details

Swap fill='initial' with 'lower' and 'upper' to get default lower and upper bounds.

Value

a list defining the Kronecker covariance parameters

See Also

sk sk_corr

Other parameter managers: sk_bds(), sk_fit(), sk_kp(), sk_pars_make(), sk_pars_update(), sk_to_string()

Examples

sk_pars(g=10)
sk_pars(c(10,15))
sk_pars(c(10,15), 'mat')
sk_pars(c(10,15), 'mat', 'upper')

snapKrig documentation built on May 31, 2023, 6:34 p.m.