plot.weightit {WeightIt}R Documentation

Plot information about the weight estimation process

Description

plot.weightit() plots information about the weights depending on how they were estimated. Currently, only weighting using method = "gbm" is supported. To plot the distribution of weights, see plot.summary.weightit().

Usage

## S3 method for class 'weightit'
plot(x, ...)

Arguments

x

a weightit object; the output of a call to weightit().

...

Unused.

Details

method = "gbm"

After weighting with generalized boosted modeling, plot() displays the results of the tuning process used to find the optimal number of trees (and tuning parameter values, if modified) that are used in the final weights. The plot produced has the number of trees on the x-axis and the value of the criterion on the y axis with a diamond at the optimal point. When multiple parameters are selected by tuning, a separate line is displayed on the plot for each combination of tuning parameters. When by is used in the call to weightit(), the plot is faceted by the by variable. See method_gbm for more information on selecting tuning parameters.

Value

A ggplot object.

See Also

weightit(), plot.summary.weightit()

Examples


# See example at the corresponding methods page


[Package WeightIt version 1.2.0 Index]