Learn R Programming

SpatioTemporal (version 1.1.2)

loglikeSTdim: Dimensions of the STmodel Structure

Description

Function that computes the dimension of several objects in a STmodel object.

Usage

loglikeSTdim(STmodel)

Arguments

STmodel
STmodel object for which dimensions are to be computed.

Value

  • list containing:
  • TNumber of observation times.
  • mNumber of temporal basis functions, including the intercept.
  • nNumber of distinct locations in the data.
  • n.obsNumber of observed locations.
  • pvector of length m; number of geographic covariates for each temporal basis functions.
  • LNumber of spatio-temporal covariates
  • npars.beta.covfvector of length m; number of parameters for each covariance-function for the beta-fields.
  • npars.beta.totvector of length m; total number of parameters for each beta-fields, including nugget(s).
  • npars.nu.covf,npars.nu.totnumber of parameters for the nu-field, same distinction as above.
  • nparamTotal number of parameters, including regression parameters.
  • nparam.covNumber of covariance parameters.

See Also

Other likelihood utility functions: calc.iS.X, calc.mu.B, calc.X.iS.X, loglikeSTgetPars, loglikeSTnames

Other STmodel functions: createCV, createDataMatrix, createSTmodel, dropObservations, loglikeST, loglikeSTnaive, predictNaive, processLocation, processLUR, processST, updateCovf

Examples

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

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

Run the code above in your browser using DataLab