I'm trying to render an instrumental variable regression summary in R Shiny
Here is the code:
iv=ivreg(lwage~educ+exper|nearc4+exper)
summary(iv)
When I use renderTable I get the following error: no applicable method for 'xtable' applied to an object of class "summary.ivreg"
Any suggestions how to go around this issue?
This is my website, if you want to see what I'm doing exactly: https://ieconometrics.shinyapps.io/test/
renderTable
expect an object for which a xtable methods exist, you can see methods avaible with :methods(xtable)
, and it doen't work withsummary.ivreg
, you can build a method yourself or obtain a result like these with the code below :