Learn R Programming

MAICtools (version 0.1.1)

hist_weights: Histograms of Weights and Rescaled Weights Distributions

Description

Histograms of Weights and Rescaled Weights Distributions

Value

Histograms of weights and rescaled weights distributions.

Arguments

ipds_wts

A data frame containing individual patient data from the intervention study, with a column containing the estimated weights (derived using estimate_weights).

intervention.arm

The name of the grouping column in the data frame specified by ipds, e.g., intervention.arm = TRT. The default is TRT.

wt.col

The name of the estimated weights column in the data frame specified by ipds_wts. The default is wt.

rswt.col

The name of the estimated rescaled weights column in the data frame specified by ipds_wts. The default is wt_rs.

bin

The number of bins or bars of the histogram.

xstepby

An integer guiding the breaks on the X-axis.

ystepby

An integer guiding the breaks on the Y-axis.

...

Refer to geom_histogram for additional parameters.

Examples

Run this code
# \donttest{
hist_weights(pts, intervention.arm = TRT, xstepby = 2, ystepby = 50)
# }

Run the code above in your browser using DataLab