hce
datasetSimulate a kidney disease hce
dataset, capturing eGFR (Estimated Glomerular Filtration Rate) progression over time, along with
a competing and dependent terminal event: KFRT (Kidney Failure Replacement Therapy)
simKHCE(
n,
CM_A,
CM_P = -4,
n0 = n,
TTE_A = 10,
TTE_P = TTE_A,
fixedfy = 2,
Emin = 20,
Emax = 100,
sigma = 8,
Sigma = 3,
m = 10,
theta = -0.23,
phi = 0
)
a list containing the dataset GFR
for longitudinal measurements of eGFR and the competing KFRT events, the dataset ADET
for the time-to-event kidney outcomes (sustained declines or sustained low levels of eGFR), and the combined HCE
dataset for the kidney hierarhical composite endpoint.
sample size in the active treatment group.
annualized eGFR slope in the active group.
annualized eGFR slope in the control group.
sample size in the control treatment group.
event rate per year in the active group for KFRT.
event rate per year in the placebo group for KFRT.
length of follow-up in years.
lower limit of eGFR at baseline.
upper limit of eGFR at baseline.
within-patient standard deviation.
between-patient standard deviation.
number of equidistant visits.
coefficient of dependence of eGFR values and the risk of KFRT.
coefficient of proportionality (between 0 and 1) of the treatment effect. The case of 0 corresponds to the uniform treatment effect.
simHCE()
for a general function of simulating hce
datasets.
# Example 1
set.seed(2022)
L <- simKHCE(n = 1000, CM_A = -3.25)
dat <- L$HCE
calcWO(dat)
Run the code above in your browser using DataLab