Skip to contents

get_hrsd() is deprecated as of hazrd 0.2.0. Please use phs_metrics() with metrics = "HR_SD" instead.

Usage

get_hrsd(
  data = NULL,
  phs = "phs",
  age = "age",
  status = "status",
  conf.int = FALSE,
  conf.level = 0.95,
  bootstrap.iterations
)

Arguments

data

a data.frame containing PHS data

phs

column name for PHS values. Default "phs"

age

column name for time-to-event. Default "age"

status

column name for event indicator. Default "status"

conf.int

logical. If TRUE, bootstrap CIs are computed. Default FALSE

conf.level

confidence level. Default 0.95

bootstrap.iterations

number of bootstrap replicates. Required when conf.int = TRUE

Value

A list with element value and optionally conf.low/conf.high.

See also