View source: R/summary.survdnn.R
| summary.survdnn | R Documentation |
Provides a structured summary of a fitted 'survdnn' model, including the network architecture, training configuration, and data characteristics. The summary is printed automatically with a styled header and sectioned output using {cli} and base formatting. The object is returned invisibly.
## S3 method for class 'survdnn'
summary(object, ...)
object |
An object of class '"survdnn"' returned by the [survdnn()] function. |
... |
Currently ignored (for future compatibility). |
Invisibly returns an object of class '"summary.survdnn"'.
set.seed(42)
sim_data <- data.frame(
age = rnorm(100, 60, 10),
sex = factor(sample(c("male", "female"), 100, TRUE)),
trt = factor(sample(c("A", "B"), 100, TRUE)),
time = rexp(100, 0.05),
status = rbinom(100, 1, 0.7)
)
mod <- survdnn(Surv(time, status) ~ age + sex + trt, data = sim_data, epochs = 50, verbose = FALSE)
summary(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.