truthQ.old | R Documentation |
A function to generate an estimate of g0n and g1n that is equal to
Q10 and Q20 plus an error term. The function is written for compatibility
with the drinf.tmle function, i.e., as though it were a SuperLearner wrapper.
If newX
is two columns, returns Q1n, if four columns, returns Q2n.
truthQ.old(Y, X, newX, family, obsWeights, ba = -0.25, b = 0.25, r = -1/4,
cons = 5, ...)
Y |
The outcome |
X |
The predictors |
newX |
The prediction frame |
family |
Not used, just for compatibility |
obsWeights |
Not used, just for compatibility |
ba |
The effect of each treatment on the outcome. See |
b |
Interaction coefficient for L01 and L11 |
r |
The exponent of the rate at which error goes to zero as function of n. |
A list
with predictions equal to truth + error
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.