The function returns four estimates. The first two are simple and biased
downwards, and included for comparison. The estimates are:
- AS: "Available Sample estimator" - The simple sample mean
- CC: "Complete Case estimator" - The mean of fully observed cases
- BT: "Weighted Complete Case estimator" - Bang and Tsiatis's estimator
- ZT: "Weighted Available estimator" - Zhao and Tian's estimator
The function needs the following in a dataframe:
- id: The id separating each individual
- cost: The total cost, or if start and stop provided the specific cost
- start: Start of cost
- stop: End of cost, if one time cost then start = stop
- delta: Event variable, 1 = event, 0 = no event
- surv: Survival