seqMI: Inference using MI-based sequential based method, under J2R

Description Usage Arguments Value

View source: R/util_fn.R

Description

Given a wide-form data, compute the estimate of the ATE under J2R using MI-based sequential method.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
seqMI(
  seq_formula,
  data_wide,
  trt_name,
  M,
  fit_model,
  id_name,
  estimator = "reg with interaction",
  bootstrap = FALSE,
  B = 100
)

Arguments

seq_formula

a list of formulas for sequential regression

data_wide

wide-form of the data frame

trt_name

name of the treatment variable

M

imputation size

fit_model

type of the analysis model. Available: lm, Rfit::rfit (rank regression), MASS::rlm (robust regression)

id_name

name of the id variable

estimator

type of the estimator. Available: sample mean, reg with interaction, reg without interaction. Default: reg with interaction

bootstrap

Whether to use bootstrap variance

B

the number of bootstrap replicate

Value

A list of MI estimation of the ATE


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