We need a mechanism for creating estfun's reflecting the shape of one teeMod but the residuals of another. We can make this possible by modifying estfun_teeMod to have a new argument residuals_from=x, expecting an lm (or glm) from which working residuals and working weights can be extracted. Those working residuals and working weights are then the ones used to create the estfun value.
We need a mechanism for creating estfun's reflecting the shape of one teeMod but the residuals of another. We can make this possible by modifying estfun_teeMod to have a new argument
residuals_from=x, expecting an lm (or glm) from which working residuals and working weights can be extracted. Those working residuals and working weights are then the ones used to create the estfun value.