psrwe_ci: Confidence/Credible Interval for PS-Integrated Estimation

View source: R/psrwe_confintv.R

psrwe_ciR Documentation

Confidence/Credible Interval for PS-Integrated Estimation

Description

Estimate the confidence/credible interval for the PS-integrated approach.

Usage

psrwe_ci(
  dta_psrst,
  method_ci = c("wald", "wilson"),
  conf_int = 0.95,
  conf_type = c("log_log", "plain"),
  ...
)

Arguments

dta_psrst

A returned object with class PSRWE_EST

method_ci

A method name for confidence interval (default wald)

conf_int

A two-sided level of confidence/credible limits (default 0.95)

conf_type

A type name of transformation for the confidence interval of PSKM approach

...

Other options

Details

method_ci = "wilson" is for binary outcomes only. conf_type = "log_log" is for ps_km only.

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_ci(ps_rst)
rst


olssol/psrwe documentation built on July 17, 2024, 4:06 p.m.