| ps_trim_meta | R Documentation |
ps_trim objectps_trim_meta() returns the metadata list attached to a
ps_trim object by ps_trim().
ps_trim_meta(x)
x |
A |
A named list with elements:
methodCharacter string indicating the trimming method used.
keep_idxInteger vector of retained observation indices.
trimmed_idxInteger vector of trimmed observation indices.
lower, upperNumeric cutoffs, when applicable.
refitLogical, TRUE if the model was refit via ps_refit().
Additional method-specific elements (e.g. cutoff, delta, lambda) may
also be present.
ps_trim() for trimming propensity scores, is_ps_trimmed() and
is_unit_trimmed() for predicate queries.
ps <- c(0.05, 0.3, 0.6, 0.95)
trimmed <- ps_trim(ps, method = "ps", lower = 0.1, upper = 0.9)
ps_trim_meta(trimmed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.