R/LF_derived.R
LF_derived.Rd
Uses an sl3
learner to estimate a likelihood factor from data.
Inherits from LF_base
; see that page for documentation on likelihood factors in general.
R6Class
object.
LF_base
object
define_lf(LF_fit, name, learner, ..., type = "density")
name
character, the name of the factor. Should match a node name in the nodes specified by tmle3_Task$npsem
learner
An sl3 learner to be used to estimate the factor
...
Not currently used.
type
character, either "density", for conditional density or, "mean" for conditional mean
learner
The learner or learner fit object
Other Likelihood objects:
CF_Likelihood
,
LF_base
,
LF_emp
,
LF_fit
,
LF_known
,
LF_static
,
LF_targeted
,
Likelihood
,
Targeted_Likelihood
,
define_lf()