LF_fit_site: Likelihood Factor Estimated from Data using sl3.

Description Format Value Constructor Fields Super classes Methods

Description

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.

Format

R6Class object.

Value

LF_base object

Constructor

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

Fields

learner

The learner or learner fit object

Super classes

tmle3::LF_base -> tmle3::LF_fit -> LF_fit_site

Methods

Public methods

Inherited methods

Method new()

Usage
LF_fit_site$new(
  name,
  learner,
  site = 1,
  ...,
  site_node = "S",
  type = "density"
)

Method delayed_train()

Usage
LF_fit_site$delayed_train(tmle_task)

Method clone()

The objects of this class are cloneable with this method.

Usage
LF_fit_site$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


Zyx0Wu/tmle3trans documentation built on June 23, 2021, 2:26 a.m.