mediator_task_fun_factory: Factory function that returns an 'sl3_Task' generator...

Description Usage Arguments Value

View source: R/utils.R

Description

Factory function that returns an sl3_Task generator function used in fitting the appropriate mediator derived conditional likelihood factor for NDE/NIE/medshift.

Usage

1
2
3
4
mediator_task_fun_factory(
  param_type = c("NDE", "NIE", "medshift"),
  subset_value = NA
)

Arguments

param_type

A character, giving the target parameter type for which to construct the psi_Z [tmle3]{tmle3_Task}.

subset_value

A numeric, which determines the treatment value used to subset the [tmle3]{tmle3_Task}. NA by default for no subsetting.

Value

A function that takes a [tmle3]{tmle3_Task} and a [tmle3]{Likelihood} and returns a new [sl3]{sl3_Task}.


tlverse/tmle3mediate documentation built on Dec. 23, 2021, 11:01 a.m.