DeclareDesign / estimatr

estimatr: Fast Estimators for Design-Based Inference
https://declaredesign.org/r/estimatr
Other
131 stars 20 forks source link

predict and residuals have odd behavior #403

Open lmiratrix opened 1 year ago

lmiratrix commented 1 year ago

Check out


dat = tibble( siteID = rep( LETTERS[1:4], each=10 ),
              X = rnorm( 40 ),
              Y = X + rnorm( 40 ) )
mod = lm_robust( Y ~ X + siteID, data=dat )
mod
predict( mod )
residuals( mod )

Should these return values?

nfultz commented 1 year ago

See also #123