data("data_example_long_surv")
result_pattern<-estimate_pattern_long_surv(
data_array=data_example_long_surv$data_array_IC,
time_matrix=data_example_long_surv$time_matrix_IC,
nobs=data_example_long_surv$nobs_IC,
starttime=data_example_long_surv$starttime_IC,
survtime=data_example_long_surv$survtime_IC,
survevent=data_example_long_surv$survevent_IC,
design_interval=data_example_long_surv$design_interval,
n_time_units=data_example_long_surv$n_time_units,
estimation_method="risk",
smoothing_method="local linear",
bw_beta=0.05,
bw_mean=0.1,
bw_var=0.1)
result_monitoring<-monitor_long_surv(
data_array_new=data_example_long_surv$data_array_OC,
time_matrix_new=data_example_long_surv$time_matrix_OC,
nobs_new=data_example_long_surv$nobs_OC,
pattern=result_pattern,
method="risk",
parameter=0.5)
Run the code above in your browser using DataLab