You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, thank you for the great and very comprehensive package!
As I've been working more with the regression-side of STMs lately, I've been wondering if it is at all possible to have the output of estimateEffect() play ball with functions from other packages, e.g. ggeffects' ggeffect() or marginaleffects' marginaleffects(). While I'm specifically looking to get the marginal effects for my model, I think interoperability here would open a lot of possibilities for all kinds of statistical testing and estimations.
I looked at the estimateEffect() code and it looks like the main issue may be related to the fact that you only provide summarised qr.lm models in the estimateEffect object. Wouldn't it be possible to add the actual model to the estimateEffect object for other functions to pick up? Or is the output of the qr.lm() model ran on thetasims vastly different from any other model output?
While this is partly a feature request, I'm also happy about any input regarding the possibility of getting marginal effects for the model without sacrificing the advantages of estimateEffects() (calculating uncertainty etc.). While it is of course possible to fit a different model (e.g. a GAM), I am aware that estimateEffects() deals with certain pecularities of the STMs in a superior way, making it preferable to other models.
Edit: After a closer look at the inner workings of estimateEffect(), I realized the qr.lm() function is also missing certain outputs that come with the regular lm() function. Is there a particular reason these variables (e.g. the term object) are not included in qr.lm()?
The text was updated successfully, but these errors were encountered:
Hey, thank you for the great and very comprehensive package!
As I've been working more with the regression-side of STMs lately, I've been wondering if it is at all possible to have the output of estimateEffect() play ball with functions from other packages, e.g. ggeffects' ggeffect() or marginaleffects' marginaleffects(). While I'm specifically looking to get the marginal effects for my model, I think interoperability here would open a lot of possibilities for all kinds of statistical testing and estimations.
I looked at the estimateEffect() code and it looks like the main issue may be related to the fact that you only provide summarised qr.lm models in the estimateEffect object. Wouldn't it be possible to add the actual model to the estimateEffect object for other functions to pick up? Or is the output of the qr.lm() model ran on thetasims vastly different from any other model output?
While this is partly a feature request, I'm also happy about any input regarding the possibility of getting marginal effects for the model without sacrificing the advantages of estimateEffects() (calculating uncertainty etc.). While it is of course possible to fit a different model (e.g. a GAM), I am aware that estimateEffects() deals with certain pecularities of the STMs in a superior way, making it preferable to other models.
Edit: After a closer look at the inner workings of estimateEffect(), I realized the qr.lm() function is also missing certain outputs that come with the regular lm() function. Is there a particular reason these variables (e.g. the term object) are not included in qr.lm()?
The text was updated successfully, but these errors were encountered: