ped_info: Extract interval information and median/modus values for...

Description Usage Arguments Value See Also Examples

Description

Given an object of class ped, returns data frame with one row for each interval containing interval information, median values for numerical variables and modi for non-numeric variables in the data set.

Usage

1
ped_info(ped)

Arguments

ped

An object of class ped as returned by split_data.

Value

A data frame with one row for each interval in ped.

See Also

int_info, sample_info

Examples

1
2
3
data("veteran", package="survival")
ped <- split_data(Surv(time, status)~ trt + age, data=veteran, id="id")
ped_info(ped) # note that trt is coded 1/2, should be fixed beforehand

adibender/pam documentation built on May 10, 2019, 5:54 a.m.