As described above, chooses appropriate method given the formula argument form (Y1 + Y0 ~ Z chooses calc.beta.oracle, Y ~ Z chooses calc.beta.ITT, Y ~ T | Z chooses calc.beta.LATE). Also, there is a master R2 function that chooses R2.ITT or R2.LATE depending on the output class of calc.beta.
If you'd rather keep the est.beta functions separate, I think that also makes sense, but I think we can keep the R2 functions merged together.
As described above, chooses appropriate method given the
formula
argument form (Y1 + Y0 ~ Z
choosescalc.beta.oracle
,Y ~ Z
choosescalc.beta.ITT
,Y ~ T | Z
choosescalc.beta.LATE
). Also, there is a masterR2
function that choosesR2.ITT
orR2.LATE
depending on the output class ofcalc.beta
.If you'd rather keep the
est.beta
functions separate, I think that also makes sense, but I think we can keep theR2
functions merged together.