User Tools

Site Tools


econometricsr

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
econometricsr [2025/06/04 11:43] – [drop publicates] glebelgeconometricsr [2025/06/04 11:44] (current) glebelg
Line 1: Line 1:
-====Start a script ====+=====Start a script =====
      
   library(stargazer)   library(stargazer)
Line 13: Line 13:
 data from Rdata data from Rdata
      
-====Summary Stats====+=====Summary Stats=====
  
   stargazer(dataset, type = "text", title= "Summary Statistics", digits = 2, out="output.csv")   stargazer(dataset, type = "text", title= "Summary Statistics", digits = 2, out="output.csv")
Line 22: Line 22:
      
          
-====Regressions====+=====Regressions=====
  
 linear linear
Line 36: Line 36:
      
      
-====Exemples====+=====Exemples=====
   install.packages("MASS")   install.packages("MASS")
   install.packages("readODS")   install.packages("readODS")
Line 98: Line 98:
   db1 %>% ftab( sexe, age)   db1 %>% ftab( sexe, age)
  
-====Import/Export====+=====Import/Export=====
 import excel import excel
   library(readxl)   library(readxl)
Line 113: Line 113:
   write.xlsx(db, file = "db.xlsx")   write.xlsx(db, file = "db.xlsx")
  
-====Data Manipulation====+=====Data Manipulation=====
  
-===drop publicates===+====drop publicates====
   newdata <- distinct(dataset,varname, .keep_all = TRUE)   newdata <- distinct(dataset,varname, .keep_all = TRUE)
  
econometricsr.1749037438.txt.gz · Last modified: by glebelg