Learn R Programming

convoSPAT (version 1.2.7)

make_global_loglik2: 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 parameter sigmasq with a fixed correlation matrix (smoothness is fixed). The nugget variance is taken to be spatially-varing.

Usage

make_global_loglik2(data, Xmat, Corr, 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.

Corr

The correlation matrix.

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

Run this code
# NOT RUN {
make_global_loglik2( data, Xmat, Corr, obs.nuggets, nugg2.var )
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab