Skip to contents

Confidence intervals for MARS coefficients

Usage

# S3 method for class 'mars'
confint(
  object,
  parm,
  level = 0.95,
  type = c("model", "robust"),
  method = c("wald", "profile"),
  vcov_method = NULL,
  inference = NULL,
  test = NULL,
  robust_type = NULL,
  hksj_adjust = NULL,
  cluster = NULL,
  ...
)

Arguments

object

A fitted mars object.

parm

Coefficients to include. The default includes all coefficients.

level

Confidence level.

type

Either "model" or "robust".

method

"wald" (default) uses the selected coefficient covariance; "profile" computes ML profile-likelihood intervals for coefficients, re-estimating nuisance parameters at every grid point. REML coefficient profiles are unsupported, as are location-scale and fixed-heterogeneity profiles. Boundary and unbracketed intervals are flagged.

vcov_method

Optional "gls" or "observed" override for model Wald intervals. Profile intervals use the likelihood and do not accept this option.

inference

NULL preserves the usual summary; model or robust explicitly selects the coefficient inference framework for this summary only.

test

NULL uses normal model inference or the stored robust test. Options are z, t, Satterthwaite, and hksj (knha alias). Robust inference additionally accepts naive-t and naive-tp; robust t means naive-t (clusters minus one df).

robust_type

Optional robust covariance, such as CR2 or CR3. Defaults to the stored selection, or CR2 with an explicit cluster.

hksj_adjust

standard (default) or modified, which floors the Hartung-Knapp variance multiplier at one. Only valid with test='hksj'.

cluster

Optional column name in the fitted analysis data identifying independent robust clusters. Defaults to the stored robust clustering column.

...

For profile intervals, arguments to profile_likelihood(), such as n_points, span, grid and control.