Learn R Programming

SpatioTemporal (version 0.9.2)

loglike.dim: Dimensions of the Model Data Structure

Description

Function that computes the dimension of several objects in the mesa.data.model data structure.

Usage

loglike.dim(mesa.data.model)

Arguments

mesa.data.model
Data structure holding observations, and information regarding which geographic and spatio-temporal covariates to use when fitting the model. See create.data.model and

Value

  • Returns a list with the following components:
  • TNumber of distinct time points in the data
  • mNumber of temporal basis functions including the intercept.
  • nNumber of distinct locations in the data
  • pA vector with m elements, containg the number of geographic covariates (LUR:s) for each of the temporal basis functions.
  • LNumber of spatio-temporal covariates
  • nparamTotal number of parameters, including covariance and regression parameters, (L+sum(p)+2*m+3)
  • nparam.covNumber of covariance parameters (2*m+3)

encoding

latin1

See Also

See mesa.data.model for details on the data structure. Used internally by several functions in the package. For further log-likelihood computations see loglike, loglike.grad, and loglike.var.names.

Examples

Run this code
##load the data
data(mesa.data.model)

##compute dimensions for the data structure
loglike.dim(mesa.data.model)

Run the code above in your browser using DataLab