psrwe_infer: Inference for the PS-Integrated Estimation Inference for the...

View source: R/psrwe_infer.R

psrwe_inferR Documentation

Inference for the PS-Integrated Estimation Inference for the PS-integrated approach.

Description

Inference for the PS-Integrated Estimation

Inference for the PS-integrated approach.

Usage

psrwe_infer(dta_psrst, alternative = c("less", "greater"), mu = 0)

Arguments

dta_psrst

a returned object with class PSRWE_EST

alternative

a character string for the alternative hypothesis that must be one of "less" (default) or "greater"

mu

a number indicating the true value of the parameter of interest (or the difference in means for two arms)

Value

A list with class name PSRWE_EST.

Examples

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


psrwe documentation built on March 18, 2022, 5:33 p.m.