psrwe_infer: Inference for the PS-Integrated Estimation

View source: R/psrwe_infer.R

psrwe_inferR Documentation

Inference for the PS-Integrated Estimation

Description

Inference for the PS-integrated approach.

Usage

psrwe_infer(
  dta_psrst,
  alternative = c("less", "greater", "two_sided"),
  mu = 0,
  method_pval = c("wald", "score", "score_weighted"),
  ...
)

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), "greater", or "two_sided" (for log-rank and RMST only)

mu

A number indicating the true value of the parameter of interest (or the difference in means for two arms), mu = 0 when the test is log-rank or RMST

method_pval

A method name for p-value (default wald), no impact for Bayesian method, and method = "score" only is for binary outcome in single arm study (i.e., comparing with a PG set by mu)

...

Other options

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


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