findOptCutoff_Model: Find two differening groups in survival data

View source: R/findOptCutoff_Model.R

findOptCutoff_ModelR Documentation

Find two differening groups in survival data

Description

Tests different cutoffs on a continuous variable and calculates log-rank tests / survival differences

Usage

findOptCutoff_Model(
  data,
  srv,
  frm0 = "srv~1",
  frm = "srv~GRP",
  stdVar = "VAL",
  delta = 0.1,
  minGrpSize = 1,
  subjVar = NULL,
  dist = NULL
)

Arguments

data

data.frame, with variables in cols

srv

Surv object with the corresponding data

delta

proportion in which group splitting should be performed

minGrpSize

minimum group size for cutoffs

subject

subject IDs if multiple measurements per subjects are to be tested

Value

data.frame with the calculated survival values (p.value, median survival, group sizes, cutoffsize, stepsize)


mknoll/dataAnalysisMisc documentation built on Nov. 17, 2024, 9:40 a.m.