CreateNewImputeMechanism: A function which creates an Impute Mechanism object

Description Usage Arguments Value See Also

View source: R/ImputeMechanism.R

Description

A function which creates an Impute Mechanism object

Usage

1
2
3
4
5
6
CreateNewImputeMechanism(
  name,
  cols.needed = vector("character"),
  impute,
  parameters = NULL
)

Arguments

name

The method name (used for printing)

cols.needed

which columns of the SingleSim data frame are required by the method, typically c("censored.time","observed.events","arm")

impute

A function which takes a SingleSimFit object and outputs the details for a single imputed data set, specifically a list with two elements: new.censored.times - a vector of times subjects were censored (after taking into account imputation) and newevent.times - a list of vectors where the vectors contain the imputed event times for the subjects (these vectors do not contain the observed event times before subject drop out). If a subject has no imputed events then the vector numeric(0) is returned.

parameters

A list of named parameters describing the method (used for printing) - or NULL if none

Value

A ImputeMechanism.object

See Also

ImputeMechanism.object


dejaVu documentation built on April 27, 2021, 5:07 p.m.