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"), ... )
dtaps |
A class |
total_borrow |
Total number of subjects to be borrowed |
method |
Method to split |
... |
Additional parameters for |
A class PSRWE_BORR
list. It appends the following items to
the dtaps
:
ProportionProportion splitting the number of total borrow among strata.
N_BorrowThe number of to be borrowed subjects in each stratum.
AlphaWeight 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.