j2r_imp: J2R imputation

Description Usage Arguments Value

View source: R/util_fn.R

Description

Conduct J2R imputation, using the estimated coefficients from MMRM

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
j2r_imp(
  data_wide,
  beta_imp_ctl,
  beta_imp_trt,
  sigma_ctl,
  sigma_trt,
  covar_name,
  y_name,
  trt_name
)

Arguments

data_wide

wide form of the data

beta_imp_ctl

M sets of the estimated MMRM coefficients used in MI for control group

beta_imp_trt

M sets of the estimated MMRM coefficients used in MI for treatment group

sigma_ctl

Estimated population covariance matrix of the longitudinal response for the control group

sigma_trt

Estimated population covariance matrix of the longitudinal response for the treatment group

covar_name

name of the baseline covariates

y_name

name of the longitudinal response

trt_name

name of the treatment

Value

imputation set at last time point


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