CkInput function

Checking Input

Checking Input

Subroutine called by the fitting procedures. The procedure controls the the validity of the input inserted by the users. UTF-8

CkInput(coordx, coordy, coordz,coordt, coordx_dyn,corrmodel, data, distance, fcall, fixed, grid,likelihood, maxdist, maxtime, model, n, optimizer, param, radius, start, taper, tapsep, type, varest, weighted,copula,X)

Arguments

  • coordx: A numeric (dx2d x 2)-matrix or (dx3d x 3)-matrix Coordinates on a sphere for a fixed radius radius

    are passed in lon/lat format expressed in decimal degrees.

  • coordy: A numeric vector giving 1-dimension of spatial coordinates; Optional argument, the default is NULL.

  • coordz: A numeric vector giving 1-dimension of spatial coordinates; Optional argument, the default is NULL.

  • coordt: A numeric vector assigning 1-dimension of temporal coordinates.

  • corrmodel: String; the name of a correlation model, for the description see GeoFit.

  • coordx_dyn: A list of mm numeric (dx2d x 2)-matrices containing dynamical (in time) spatial coordinates. Optional argument, the default is NULL

  • data: A numeric vector or a (nxdn x d)-matrix or (dxdxnd x d x n)-matrix of observations.

  • distance: String; the name of the spatial distance. The default is Eucl, the euclidean distance. See the Section Details .

  • fcall: String; Fitting to call the fitting procedure and simulation to call the simulation.

  • fixed: A named list giving the values of the parameters that will be considered as known values. The listed parameters for a given correlation function will be not estimated, i.e. if list(nugget=0) the nugget effect is ignored.

  • grid: Logical; if FALSE (the default) the data are interpreted as a vector or a (nxdn x d)-matrix, instead if TRUE then (dxdxnd x d x n)-matrix is considered.

  • likelihood: String; the configuration of the composite likelihood. Marginal is the default.

  • maxdist: Numeric; an optional positive value indicating the maximum spatial distance considered in the composite-likelihood computation.

  • maxtime: Numeric; an optional positive value indicating the maximum temporal lag separation in the composite-likelihood.

  • radius: Numeric; the radius of the sphere in the case of lon-lat coordinates. The default is 6371, the radius of the earth.

  • model: String; the density associated to the likelihood objects. Gaussian is the default.

  • n: Numeric; the number of trials in a binomial random fields. Default is 11.

  • optimizer: String; the optimization algorithm (see optim for details). 'Nelder-Mead' is the default.

  • param: A numeric vector of parameters, needed only in simulation. See GeoSim.

  • start: A named list with the initial values of the parameters that are used by the numerical routines in maximization procedure. NULL is the default.

  • taper: String; the name of the tapered correlation function.

  • tapsep: Numeric; an optional value indicating the separabe parameter in the space time quasi taper (see Details ).

  • type: String; the type of the likelihood objects. If Pairwise (the default) then the marginal composite likelihood is formed by pairwise marginal likelihoods.

  • varest: Logical; if TRUE the estimate' variances and standard errors are returned. FALSE is the default.

  • weighted: Logical; if TRUE the likelihood objects are weighted. If FALSE (the default) the composite likelihood is not weighted.

  • copula: String; the type of copula. It can be "Clayton" or "Gaussian"

  • X: Numeric; Matrix of space-time covariates in the linear mean specification.

Returns

A list with the type of error associated with the input parameters.

Details

Subroutine called by the fitting procedures. The procedure controls the the validity of the input inserted by the users.

See Also

GeoFit

Author(s)

Moreno Bevilacqua, moreno.bevilacqua89@gmail.com ,https://sites.google.com/view/moreno-bevilacqua/home, Víctor Morales Oñate, victor.morales@uv.cl , https://sites.google.com/site/moralesonatevictor/, Christian", Caamaño-Carrillo, chcaaman@ubiobio.cl ,https://www.researchgate.net/profile/Christian-Caamano

  • Maintainer: Moreno Bevilacqua
  • License: GPL (>= 3)
  • Last published: 2025-01-14