- data
a numeric matrix, centered covariates of IPD, no missing value in any cell is allowed
- centered_colnames
a character or numeric vector (column indicators) of centered covariates
- start_val
a scalar, the starting value for all coefficients of the propensity score regression
- method
a string, name of the optimization algorithm (see 'method' argument of base::optim()
) The
default is "BFGS"
, other options are "Nelder-Mead"
, "CG"
, "L-BFGS-B"
, "SANN"
, and "Brent"
- n_boot_iteration
an integer, number of bootstrap iterations. By default is NULL which means bootstrapping
procedure will not be triggered, and hence the element "boot"
of output list object will be NULL.
- set_seed_boot
a scalar, the random seed for conducting the bootstrapping, only relevant if
n_boot_iteration
is not NULL. By default, use seed 1234
- boot_strata
a character vector of column names in data
that defines the strata for bootstrapping.
This ensures that samples are drawn proportionally from each defined stratum. If NULL
,
no stratification during bootstrapping process. By default, it is "ARM"
- ...
Additional control
parameters passed to stats::optim.
- x
object from estimate_weights
- ggplot
indicator to print base weights plot or ggplot
weights plot
- bin_col
a string, color for the bins of histogram
- vline_col
a string, color for the vertical line in the histogram
- main_title
title of the plot. For ggplot, name of scaled weights plot and unscaled weights plot, respectively.
- scaled_weights
(base plot only) an indicator for using scaled weights instead of regular weights
- bins
(ggplot
only) number of bin parameter to use