FixScoreEquation: FixScoreEquation

View source: R/ltmleMediation_TMLECalcs.R

FixScoreEquationR Documentation

FixScoreEquation

Description

In case the GLM did not converge and the TMLE does not solve the score equation, attempt to solve the score equation directly.

Usage

FixScoreEquation(
  Qstar.kplus1,
  h.g.ratio,
  uncensored,
  intervention.match,
  is.deterministic,
  deterministic.Q,
  off,
  X,
  regimes.with.positive.weight
)

Arguments

Qstar.kplus1

Estimate of the expectation with respect to the distribution of the node one ahead of the current node given the past (dimension: n x num.regimes).

h.g.ratio

I() * h * observation.weights * cum.q.ratio / g

uncensored

Uncensored samples

intervention.match

Samples that match the rule.

is.deterministic

TO DO

deterministic.Q

TO DO

off

offset used for TMLE.

X

TO DO

regimes.with.positive.weight

Regimes with positive weight.

Value

Returns solved score equation.


podTockom/medltmle documentation built on Aug. 9, 2022, 9:32 a.m.