Description Format Value Constructor Fields Super classes Methods
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.
site
Value that indicates an observation being a trial data
site_node
Node of the trial indicator
type
character, either "density", for conditional density or, "mean" for conditional mean
learner
The learner or learner fit object
tmle3::LF_base
-> tmle3::LF_fit
-> LF_fit_site
new()
LF_fit_site$new( name, learner, site = 1, ..., site_node = "S", type = "density" )
delayed_train()
LF_fit_site$delayed_train(tmle_task)
clone()
The objects of this class are cloneable with this method.
LF_fit_site$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.