afttest.aftsrr: Model Diagnostics for Smooth Rank Regression (aftsrr) Objects

View source: R/afttest.R

afttest.aftsrrR Documentation

Model Diagnostics for Smooth Rank Regression (aftsrr) Objects

Description

Model Diagnostics for Smooth Rank Regression (aftsrr) Objects

Usage

## S3 method for class 'aftsrr'
afttest(
  object,
  data,
  npath = 200,
  testType = "omnibus",
  eqType = NULL,
  covTested = 1,
  npathsave = 50,
  linApprox = TRUE,
  seed = NULL,
  ...
)

Arguments

object

A fitted model object of class aftsrr from the aftgee package.

data

An optional data frame in which to interpret the variables occurring in the formula.

npath

An integer value specifying the number of approximated processes. The default is given by 200.

testType

A character string specifying the type of the test. The following are permitted:

omnibus

an omnibus test

link

a link function test

covForm

a functional form of a covariate

eqType

An optional character string specifying the type of the estimating equation. For a fitted aftsrr object, the estimating equation used in the fitted object is retained. If it cannot be identified from the fitted object, "ns" is used. The permitted values are "ns" and "is". If a different value from that used in the fitted object is supplied, it is ignored with a warning.

covTested

A single design-matrix column to test when testType is covForm, supplied by position or name.

npathsave

An integer value specifying the number of simulated paths retained in the returned object. The default is 50.

linApprox

A logical value. If TRUE, the multiplier bootstrap is computed using the asymptotic linear approximation, which is significantly faster. If FALSE, the estimating equations are solved numerically for each bootstrap replication. Defaults to TRUE.

seed

An optional integer specifying the random seed for reproducibility.

...

Other arguments passed to methods.


afttest documentation built on Nov. 11, 2026, 9:06 a.m.