waldtest function

Wald test for ciregic and ciregic_lt

Wald test for ciregic and ciregic_lt

waldtest for class ciregic or ciregic_lt. This provides the result of Wald test for the fitted model from the function ciregic or ciregic_lt.

waldtest(obj1, obj2 = NULL, ...)

Arguments

  • obj1: an object of the fitted model in ciregic or ciregic_lt
  • obj2: an object of the fitted model in ciregic or ciregic_lt, the default is NULL
  • ...: further arguments

Returns

The function waldtest returns an output table of Wald test of the model from object. - varnames.full: a variable name of a vector of variables names in the full model

  • varnames.nested: a variable name of a vector of variables names in the nested model

  • vcov: the estimated bootstrap variance-covariance matrix for overall Wald test

  • vcov.event1: the estimated bootstrap variance-covariance matrix for cause-specific Wald test (event type 1)

  • vcov.event2: the estimated bootstrap variance-covariance matrix for cause-specific Wald test (event type 2)

  • table: a table including test statistic, degrees of freedom, and p-value

Details

The function waldtest.ciregic returns a result of Wald test.

Examples

## Continuing the ciregic(...) example library(intccr) waldtest(obj1 = fit) set.seed(12345) newdata <- dataprep(data = longdata, ID = id, time = t, event = c, Z = c(z1, z2)) fit.nested <- ciregic(formula = Surv2(v = v, u = u, event = c) ~ z2, data = newdata, alpha = c(1, 1), nboot = 0, do.par = FALSE) waldtest(obj1 = fit, obj2 = fit.nested)

See Also

The fitted semiparametric regression on cumulative incidence function with interval-censored competing risks data ciregic and left-truncated and interval-censored competing risks data ciregic_lt

Author(s)

Jun Park, jun.park@alumni.iu.edu

Giorgos Bakoyannis, gbakogia@iu.edu

  • Maintainer: Jun Park
  • License: GPL (>= 2)
  • Last published: 2022-05-10

Useful links