j2rLlh: Likelihood-based method

Description Usage Arguments Value

View source: R/util_fn.R

Description

For a given dataset, find the likelihood-based inference of the ATE by delta method or nonparametric bootstrap

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
j2rLlh(
  mmrm_formula,
  data_long,
  time_name,
  id_name,
  trt_name,
  method = "PMM",
  bootstrap = FALSE,
  B = 100
)

Arguments

mmrm_formula

formula for fixed effect MMRM under MAR

data_long

long-form of the data frame

time_name

name of the time variable

id_name

name of the id variable

trt_name

name of the treatment variable

method

specific method for likelihood-based approach. Available: PMM (default), CBMI

bootstrap

whether to use bootstrap variance

B

the number of bootstrap replicate. Default: B = 100

Value

Point estimation and variance estimation obtained by delta method:


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