Description Usage Arguments Details Value

Fit One-Dimensional Fluctuation Model for Updating Initial Estimates

1 2 3 4 5 6 7 8 | ```
fit_fluctuation(
Y,
Qn_scaled,
Hn,
ipc_weights = rep(1, length(Y)),
method = c("standard", "weighted"),
flucmod_tol = 100
)
``` |

`Y` |
A |

`Qn_scaled` |
An object providing the value of the outcome evaluate
after inducing a shift in the exposure. This object should be passed in
after being constructed by a call to |

`Hn` |
An object providing values of the auxiliary ("clever") covariate,
constructed from the treatment mechanism and required for targeted minimum
loss estimation. This object object should be passed in after being
constructed by a call to |

`ipc_weights` |
A |

`method` |
A |

`flucmod_tol` |
A |

Procedure for fitting a one-dimensional fluctuation model to update the initial estimates of the outcome regression based on the auxiliary covariate. These updated estimates are subsequently used to construct the TML estimator of the counterfactual mean under a modified treatment policy.

A `list`

containing the fluctuation model (a `glm`

object)
produced by logistic regression, a `character`

vector indicating the
type of fluctuation (whether the auxiliary covariates was used as a weight
or included directly in the model formula), the updated estimates of the
outcome regression under the shifted value of the exposure, and the updated
estimates of the outcome regression under the natural value of exposure.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.