Calculate Parameter Estimates (calcParameters)
An internal function called by the tmle
function to calculate the population mean effect when there is missingness in the data, but no treatment assignment. When observations are in treatment and control groups, estimates the additive treatment effect among the entire population (ATE), among the treated (ATT), and among the controls (ATC). If the outcome is binary, also the relative risk and odds ratio parameters. P-values and 95% confidence intervals are also calculated (on the log scale for RR and OR).
calcParameters(Y, A, I.Z, Delta, g1W, g0W, Q, mu1, mu0, id, family)
Y |
continuous or binary outcome variable |
A |
binary treatment indicator, |
I.Z |
Indicator Z=z, needed for CDE estimation |
Delta |
indicator of missing outcome. |
g1W |
censoring mechanism estimates, P(A=1|W)*P(Delta=1|A,W) |
g0W |
censoring mechanism estimates, P(A=0|W)*P(Delta=1|A,W) |
Q |
a 3-column matrix |
mu1 |
targeted estimate of E(Y|A=1,W) |
mu0 |
targeted estimate of E(Y|A=0,W) |
id |
subject identifier |
family |
family specification for regressions, generally ‘gaussian’ for continuous outcomes, ‘binomial’ for binary outcomes |
EY1 |
Population mean outcome estimate, variance, p-value, 95% confidence interval (missingness only, no treatment assignment), or |
ATE |
additive treatment effect estimate, variance, p-value, 95% confidence interval, or |
RR |
relative risk estimate, p-value, 95% confidence interval, log(RR), variance(log(RR)), or |
OR |
odds ratio estimate, p-value, 95% confidence interval, log(OR), variance(log(OR)), or |
Susan Gruber
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.