calcParameters | R Documentation |
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,
obsWeights, alpha.sig=0.05, ICflag=TRUE)
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, |
g0W |
censoring mechanism estimates, |
Q |
a 3-column matrix |
mu1 |
targeted estimate of |
mu0 |
targeted estimate of |
id |
subject identifier |
family |
family specification for regressions, generally ‘gaussian’ for continuous outcomes, ‘binomial’ for binary outcomes |
obsWeights |
sampling weights |
alpha.sig |
significance level for constructing CIs. Default = 0.05 |
ICflag |
set to FALSE to skip evaluating IC-based variance |
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
tmle
,
estimateQ
,
estimateG
,
tmleMSM
,
calcSigma
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.