View source: R/mediator-survival.R
medweight | R Documentation |
Computes mediation weights for either binary or multinomial mediators. The important part is that the influence functions can be obtained to compute standard errors.
medweight(
fit,
data = data,
var = NULL,
name.weight = "weights",
id.name = "id",
...
)
fit |
either glm-binomial or mlogit (mets package) |
data |
data frame with data |
var |
is NULL reads mediator and exposure from formulae in the fit. |
name.weight |
name of weights |
id.name |
name of id variable, important for SE computations |
... |
Additional arguments to |
Thomas Scheike
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.