Incorporate existing knowledge about the likelihood Inherits from LF_base; see that page for documentation on likelihood factors in general.

Format

R6Class object.

Value

LF_base object

Constructor

define_lf(LF_fit, name, mean_fun, density_fun, ..., type = "density")

name

character, the name of the factor. Should match a node name in the nodes specified by tmle3_Task$npsem

mean_fun

A function that takes a sl3 regression task and returns true conditional means

density_fun

A function that takes a sl3 regression task and returns true conditional densities

...

Not currently used.

type

character, either "density", for conditional density or, "mean" for conditional mean

See also