rubin_est: Get Rubin's estimate

Description Usage Arguments Value

View source: R/util_fn.R

Description

Get estimation results by Rubin's rule

Usage

1
rubin_est(chg_imp, data_wide, covar_name, trt_name, M, fit_model, estimator)

Arguments

chg_imp

a matrix of imputed response at the last time point

data_wide

wide-form of the data frame

covar_name

names of the baseline covariates

trt_name

name of the treatment variable

M

imputation size

fit_model

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

estimator

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

Value

Rubin's point and variance estimate


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