make_global_loglik4_kappa {convoSPAT}R Documentation

Constructor functions for global parameter estimation.

Description

This function generates another function to be used within optim to obtain maximum likelihood estimates of global variance parameters nu. The process variance and nugget variance are taken to be spatially-varying.

Usage

make_global_loglik4_kappa(
  data,
  Xmat,
  cov.model,
  Scalemat,
  Distmat,
  obs.variance,
  obs.nuggets,
  nugg2.var
)

Arguments

data

A vector or matrix of data to use in the likelihood calculation.

Xmat

The design matrix for the mean model.

cov.model

String; the covariance model.

Scalemat

Matrix; contains the scaling quantities from the covariance function.

Distmat

Matrix; contains the scaled distances.

obs.variance

A vector containing the spatially-varying variance corresponding to each data location.

obs.nuggets

A vector containing the spatially-varying nuggets corresponding to each data location.

nugg2.var

Fixed values for the covariance of the second nugget term.

Value

This function returns another function for use in optim.

Examples

## Not run: 
make_global_loglik4_kappa( data, Xmat, cov.model, Scalemat, Distmat,
obs.variance, obs.nuggets, nugg2.var )

## End(Not run)


[Package convoSPAT version 1.2.7 Index]