[R] Marginal effects with plm
Ista Zahn
|@t@z@hn @end|ng |rom gm@||@com
Thu Sep 6 15:03:47 CEST 2018
You might be interested in the "prediction" and "margins" packages.
--Ista
On Wed, Sep 5, 2018 at 6:30 PM Miluji Sb <milujisb using gmail.com> wrote:
>
> Dear all,
>
> I am running the following panel regression;
>
> plm1 <- plm(formula = log(y) ~ x1 + I(x1^2) + heat*debt_dummy + tt, data =
> df, index=c("region","year"))
>
> where 'df' is a pdata.frame. I would like to obtain marginal effects of 'y'
> for the variable 'x1'. I have tried the packages 'prediction' and 'margins'
> without luck.
>
> Is it possible to obtain marginal effects with 'plm'? Any help will be
> highly appreciated. Thank you.
>
> Error in UseMethod("predict") :
> no applicable method for 'predict' applied to an object of class
> "c('plm', 'panelmodel')"
>
> Sincerely,
>
> Milu
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list