waldtest {intccr}R Documentation

Wald test for ciregic and ciregic_lt

Description

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.

Usage

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

Details

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

Value

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

Author(s)

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

Giorgos Bakoyannis, gbakogia@iu.edu

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

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)

[Package intccr version 3.0.4 Index]