fee_negbin | R Documentation |
Computes the first-exposure effect (FEE) for a model estimated using the
one-inflated zero-truncated negative binomial distribution. The FEE represents
the change in expected counts associated with the first exposure to treatment,
relative to the counterfactual zero-truncated negative binomial model. This
function is used internally by fee
at given covariate values.
fee_negbin(b, g, a, X, Z)
b |
A numeric vector of estimated coefficients for the rate. |
g |
A numeric vector of estimated coefficients for inflation. |
a |
A dispersion parameter from the negative binomial model. |
X |
A numeric matrix of covariates for the rate. |
Z |
A numeric matrix of covariates for inflation. |
A numeric vector of first-exposure effect(s).
fee
, fee_pois
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.