LKrigSetupAlpha: Creates the alpha parameter list in LatticeKrig covariance.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/LKrigSetupAlpha.R

Description

This function is called by LKrigSetup and creates the list for the alpha parameters based on the information from the call to LKrigSetup and additional information and conditions related to the geometry.

Usage

1
2
3
LKrigSetupAlpha(object, ...)
## Default S3 method:
LKrigSetupAlpha(object, ...)

Arguments

object

The partial LKinfo object created within LKrigSetup

...

Any additional arguments to this method

Details

The main function of this method is to fill in the sequence of alpha values for a parametric model and convert those values to a list instead of a vector. In the case that the scalar nu is supplied it is used to create the list according to:

1
2
3
4
	
	alpha <- exp(-2 * (1:nlevel) * nu)
    alpha <- alpha/sum(alpha)
    as.list( alpha)

Value

A list with nlevel components each representing the alpha values at that level. In the simplest case a vector of alpha values is converted to a list.

1
2
3
4
5
6
7
8
9
  LKinfo<- LKrigSetup( x, alpha=c( 1,.2,.01),
                   nlevel=3, a.wght=4.5, NC= 3)
  LKrigSetupAlpha( LKinfo)
[[1]]
[1] 1
[[2]]
[1] 0.2
[[3]]
[1] 0.01

Author(s)

Doug Nychka

See Also

LKrigSetup, LKrigSetupAwght, LKrigSAR, LKrig

Examples

1
2
3
4
5
6
7
8
9
# an x that is just the limits of the domain	
  x<- cbind( c(0,1), c(0,1))
  
  LKinfo<- LKrigSetup( x, alpha=c( 1,.2,.01),
                   nlevel=3, a.wght=4.5, NC= 3)
  alphaList<- LKrigSetupAlpha( LKinfo)

  LKinfo<- LKrigSetup( x, nu=1, nlevel=4, a.wght=4.5, NC= 4)
  alphaList<- LKrigSetupAlpha( LKinfo)

LatticeKrig documentation built on Nov. 9, 2019, 5:07 p.m.