smed: Function to output summary statistics from survfit function...

View source: R/smed.R

smedR Documentation

Function to output summary statistics from survfit function output

Description

Provide summary statistics from survfit function output

Usage

smed(x)

Arguments

x

an object returned by "survfit"

Value

"smed" returns a matrix of 5 columns of

Examples

n <- 500
event <- runif(n,1, 5)
osc<-1*(event<=4)
os <- pmin(event,4)

fit1<-survival::survfit(survival::Surv(os,osc)~1)
smed(fit1)


EventPredInCure documentation built on May 29, 2024, 11:04 a.m.