extreme_weights lists the trials with the largest treatment weights alongside the corresponding rows of the input data, so that the subjects behind extreme weights can be inspected. Each weight is paired with its trial through the ipt_weights element of the fitted object, using trial_id, the per-trial id that the estimation routines construct: the subject id followed by the number of the trial within the subject (for example "17_2"), where the subject id is the input row index when no subject id was identified with identify_subject. The columns of the input data are listed as supplied; a column of the input data named trial_id or weight_treatment is replaced by the listing's own, with a warning. For interval data the listing shows the first interval of each trial. Trials removed by trimming or subgrouping are not listed.

extreme_weights(..., n = NULL, pct = NULL)

Arguments

...

ipw or aipw objects supplied as a list or as separate arguments

n

The number of trials to list for each object

pct

The proportion of each object's trials to list, used when n is NULL. When both are NULL, 20 trials are listed

Value

A DT::datatable with, for each object, one row per listed trial holding the columns of the input data followed by trial_id and weight_treatment, in decreasing order of the weight

Author

Robert A. Overman