summary.afttest {afttest} | R Documentation |
summary.afttest
Description
summary.afttest
Usage
## S3 method for class 'afttest'
summary(object, ...)
Arguments
object |
is a |
... |
other options. |
Value
summary.afttest
returns a summary of a afttest
fit:
Examples
## Simulate data from an AFT model
library(afttest)
library(survival)
datgen <- function(n = 100) {
z1 <- rbinom(n, 1, 0.5)
z2 <- rnorm(n)
e <- rnorm(n)
tt <- exp(2 + z1 + z2 + e)
cen <- runif(n, 0, 100)
data.frame(Time = pmin(tt, cen), status = 1 * (tt < cen),
z1 = z1, z2 = z2, id = 1:n)
}
set.seed(0)
simdata <- datgen(n = 20)
result <- afttest(Surv(Time, status) ~ z1 + z2, optimType = "DFSANE",
data = simdata, testType="link", eqType="mns")
summary(result)
# afttestplot(result)
[Package afttest version 4.3.2.3 Index]