htWGT | R Documentation |
This proposed weight is the Horvitz-Thompson type of weight.
htWGT( xi, di, id, case, control, m0, M.dat = NULL, a.M = NULL, yes.ptb = FALSE, control.list = list(CaseID = NULL, Vii.ptb = NULL, yes.parallel = FALSE) )
xi |
a vector of censored event times. |
di |
a vector of binary values (1 or 0) indicating whether the true event time is observed. |
id |
a vector which identifies the subjects. |
case |
a vector which indicates whether each subject is a sub-cohort case. The value is 1 if the subject is a sub-cohort case, and it is 0 if the subject is not a sub-cohort case. |
control |
a vector which indicates whether each subject is a sub-cohort control. The value is 1 if the subject is a sub-cohort control, and it is 0 if the subject is not a sub-cohort control. |
m0 |
a numerical value which is the number of controls selected for each case. |
M.dat |
a |
a.M |
a numerical vector which includes the matching constraint for each matching variable. The default value is |
yes.ptb |
logical indicating if obtaining the perturbed counterparts of the IPW estimates, and the default value is |
control.list |
a list including two elements: |
If yes.ptb=FALSE
, it returns a single-column matrix which includes the NCC weights; otherwise, it returns a matrix with the first column being the NCC weights and the remaining columns being their perturbed counterparts.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.