psrwe_infer | R Documentation |
Inference for the PS-integrated approach.
psrwe_infer(
dta_psrst,
alternative = c("less", "greater", "two_sided"),
mu = 0,
method_pval = c("wald", "score", "score_weighted"),
...
)
dta_psrst |
A returned object with class |
alternative |
A character string for the alternative hypothesis that
must be one of |
mu |
A number indicating the true value of the parameter of interest
(or the difference in means for two arms),
|
method_pval |
A method name for p-value (default wald),
no impact for Bayesian method, and
|
... |
Other options |
A list with class name PSRWE_EST
.
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 = 30, dta_ps)
ps_rst <- psrwe_compl(ps_borrow, v_outcome = "Y_Con")
rst <- psrwe_infer(ps_rst)
rst
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.