Dispatches either to the generic regression interface (design matrix + response) or to a gnss_ts_ngl workflow.

Convenience wrapper that selects the missing or non-missing implementation based on the presence of NA values in y.

gmwmx2(X, ...)

# Default S3 method
gmwmx2(X, y, model, omega = NULL, method = "L-BFGS-B", control = list(), ...)

# S3 method for class 'gnss_ts_ngl'
gmwmx2(
  X,
  n_seasonal = 2,
  vec_earthquakes_relaxation_time = NULL,
  component = NULL,
  model = NULL,
  omega = NULL,
  method = "L-BFGS-B",
  control = list(),
  ...
)

Arguments

X

A gnss_ts_ngl object (GNSS time-series interface).

...

Reserved for future extensions.

y

Response vector for a generic regression interface.

model

Stochastic model specification.

omega

Optional weighting matrix. If NULL, uses inverse CI width.

method

Optimization method passed to stats::optim.

control

Control list passed to stats::optim.

n_seasonal

Number of seasonal signals.

vec_earthquakes_relaxation_time

Relaxation time for each earthquake.

component

Component to estimate ("N", "E", or "V").

Value

A fitted model object.

A fitted model object.

A fitted model object.