psrwe_compl: PS-Integrated Composite Likelihood Estimation

View source: R/psrwe_complikel.R

psrwe_complR Documentation

PS-Integrated Composite Likelihood Estimation

Description

Estimate the mean of the outcome based on PS-integrated composite likelihood approach. Variance is estimated by Jack-Knife method. Applies to the case when there is only one external data source.

Usage

psrwe_compl(
  dta_psbor,
  v_outcome = "Y",
  outcome_type = c("continuous", "binary"),
  ...
)

Arguments

dta_psbor

A class PSRWE_BOR object generated by psrwe_borrow.

v_outcome

Column name corresponding to the outcome.

outcome_type

Type of outcomes: continuous or binary.

...

Parameters for rwe_cl

Value

A data frame with class name PSRWE_RST. It contains the composite estimation of the mean for each stratum as well as the jackknife estimation for each subject. The results should be further summarized by its S3 method summary.

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)
rst       <- psrwe_compl(ps_borrow, v_outcome = "Y_Con")
rst


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