summarize_weights: Summarize the Distribution of Weight Values

View source: R/summarize_weights.R

summarize_weightsR Documentation

Summarize the Distribution of Weight Values

Description

Summarize the Distribution of Weight Values

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.

digits

Specify the number of decimal places for the output results.

Value

A data frame containing a summary table of weights and rescaled weights.

Examples


summarize_weights(ipds_wts = pts, intervention.arm = TRT)



MAICtools documentation built on April 4, 2025, 12:17 a.m.