loglikeSTnames: Create Names for Log-likelihood Parameters for STmodel...

Description Usage Arguments Value Author(s) See Also Examples

Description

Function that creates a character vector with names for the parameters expected by log-likelihood functions. Names are created by extracting names from the STmodel structure.

Usage

1
loglikeSTnames(STmodel, all = TRUE)

Arguments

STmodel

STmodel object for which parmeter names are to be computed.

all

compute all parameter names (regression and covariance) or only covariance parameters.

Value

Returns names of the parameters expected by the log-likelihood functions. Regerssion parameter names start with gamma/alpha (spatio-temporal/geographic covariate), followed by name of beta-field, and the name of covariate. The covariance parameters follow, log (reminder that parameter is log-scale), covariance parameter name, name of field, type of covariance function.

Author(s)

Johan Lindstrom

See Also

Other likelihood utility functions: calc.mu.B, loglikeSTdim, loglikeSTgetPars

Examples

1
2
3
4
5
6
7
##load the data
data(mesa.model)

##Find out in which order parameters should be given
loglikeSTnames(mesa.model)
##...and for only the covariance parameters.
loglikeSTnames(mesa.model, FALSE)

SpatioTemporal documentation built on May 2, 2019, 8:49 a.m.