Learn R Programming

orthoDr (version 0.6.8)

print.orthoDr: Print a orthoDr object

Description

Provides a custom print wrapper for displaying orthoDr fitted models.

Usage

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

Value

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

Arguments

x

A fitted orthoDr object

...

Additional parameters, not used.

Examples

Run this code
# 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")

Run the code above in your browser using DataLab