fitGLS_opt_FUN {remotePARTS}R Documentation

Function that fitGLS_opt optimizes over

Description

Function that fitGLS_opt optimizes over

Usage

fitGLS_opt_FUN(
  op,
  fp,
  formula,
  data = NULL,
  coords,
  covar_FUN = "covar_exp",
  distm_FUN = "distm_scaled",
  is.trans = FALSE,
  backtrans = list(),
  ncores = NA
)

Arguments

op

a named vector of parameters to be optimized

fp

a named vector of fixed parameters

formula

GLS model formula

data

data source

coords

a coordinate matrix

covar_FUN

a covariance function

distm_FUN

a distm function

is.trans

logical: are any of the values in op or fp transformed, needing back-transformation?

backtrans

optional: a named list of functions used to backtransform any element of op or fp. Names must correspond to names in op or fp.

ncores

an optional integer indicating how many CPU threads to use for calculations.

Value

fitGLS_opt_FUN returns the negative log likelihood of a GLS, given the parameters in op and fp


[Package remotePARTS version 1.0.4 Index]