print.orthoDr: Print a 'orthoDr' object

View source: R/print.r

print.orthoDrR Documentation

Print a orthoDr object

Description

Provides a custom print wrapper for displaying orthoDr fitted models.

Usage

## S3 method for class 'orthoDr'
print(x, ...)

Arguments

x

A fitted orthoDr object

...

Additional parameters, not used.

Value

Sliently returns the orthoDr object supplied into the function to allow for use with pipes.

Examples

# generate some survival data
N <- 100
P <- 4
dataX <- matrix(rnorm(N * P), N, P)
Y <- exp(-1 + dataX[, 1] + rnorm(N))
Censor <- rbinom(N, 1, 0.8)

# fit the model
orthoDr_surv(dataX, Y, Censor, ndr = 1, method = "dm")

orthoDr documentation built on April 30, 2023, 5:12 p.m.