Installing stargazer package

Now, on to installing stargazer:

  • First create a new R script (File | New File | R Script).
  • Enter the following lines and then select Source from the menu bar in the code pane, which will submit the entire script:
        install.packages("stargazer") 
library(stargazer)
stargazer(lm_output, , type="text")

After the script has been run, the following should appear in the Console: