km.cal.tab: IPD Calculation

Description Usage Arguments Value

View source: R/base.functions.R View source: R/base functions.R

Description

This function calculate all the IPDs based on input data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
km.cal.tab(
  t.points,
  s.points,
  t.risk.T,
  n.risk.T,
  lower.T,
  upper.T,
  t.event = "NA",
  gr.number = "group"
)

Arguments

t.points

vector of time to event points; they represents the x axis values marked from the KM plot using digizeit, which is greater than 0.

s.points

vector of survival rate points; they represents the y axis values marked from the KM plot using digizeit, which ranges from 0 to 1.

t.risk.T

vector of time points in the number at risk table from the original KM plot, which starts from zero.

n.risk.T

vector of number at risk at each time point in the number at risk table from the original KM plot, which has the same length as t.risk.T.

lower.T

numeric vector; number of data points at start between time intervals in the number at risk table

upper.T

numeric vector; number of data points at end between time intervals in the number at risk table

t.event

number of events

gr.number

name for the group

n.t.T

number of clicks in the group

Value

data frame with time to event, censoring, and group name information


vandy10s/extractKM documentation built on July 24, 2020, 12:55 p.m.