approx_inference: Variance estimation of likelihood-based inference...

Description Usage Arguments Value

View source: R/util_fn.R

Description

Compute variance estimate of the likelihood-based inference using delta method

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
approx_inference(
  beta_last_ctl,
  beta_last_trt,
  cov4_ctl,
  cov4_trt,
  beta_complete_trt = NULL,
  cov4_complete_trt = NULL,
  obs_pi,
  var_xbar,
  adj_mean,
  n2,
  method
)

Arguments

beta_last_ctl

regression coefficient at last time point in control

beta_last_trt

regression coefficient at last time point in treatment

cov4_ctl

covariance of the coefficient at last time point in control

cov4_trt

covariance of the coefficient at last time point in treatment

beta_complete_trt

estimated regression coefficients for complete data in treatment

cov4_complete_trt

covariance of the estimated regression coefficients for complete data in treatment

obs_pi

marginal observed probability in each group

var_xbar

covariance of the covariates

adj_mean

overall mean of the covariates

n2

number of subjects in treatment

method

name of the likelihood-based method. Available: PMM, CBMI

Value

Estimation results:


Merck/mmrm documentation built on Dec. 17, 2021, 4:12 a.m.