psrwe_borrow | R Documentation |
Based on PS distances or number of current control subjects, split the total number of subjects to be borrowed from the external data source to each stratum
psrwe_borrow(
dtaps,
total_borrow,
method = c("distance", "inverse_distance", "n_current", "n_external"),
.drop_arg_fml = FALSE,
...
)
dtaps |
A class |
total_borrow |
Total number of subjects to be borrowed |
method |
Method to split |
.drop_arg_fml |
internal use to drop arguments and call, this is only used in cjk. |
... |
Additional parameters for |
A class PSRWE_BORR
list. It appends the following items to
the dtaps
:
Proportion splitting the number of total borrow among strata.
The number of to be borrowed subjects in each stratum.
Weight parameter value in each stratum.
data(ex_dta)
dta_ps <- psrwe_est(ex_dta,
v_covs = paste("V", 1:7, sep = ""),
v_grp = "Group",
cur_grp_level = "current")
ps_borrow <- psrwe_borrow(total_borrow = 20, dta_ps)
ps_borrow
## Use different similarity metric
ps_borrow_omkss <- psrwe_borrow(total_borrow = 20, dta_ps,
metric = "omkss")
ps_borrow_omkss
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.