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 tausq, sigmasq with a fixed correlation matrix (smoothness is fixed).

Usage

1
make_global_loglik1(data, Xmat, Dmat, Vmat)

Arguments

data

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

Xmat

The design matrix for the mean model.

Dmat

A diagonal matrix of eigenvalues for the covariance matrix.

Vmat

An orthogonal matrix of eigenvectors for the covariance matrix.

Value

This function returns another function for use in optim.

Examples

1
2
3
4
## Not run: 
make_global_loglik1( data, Xmat, Dmat, Vmat )

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.