This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| econometricsr [2025/06/04 11:42] – [Regressions] glebelg | econometricsr [2025/09/16 07:48] (current) – [Import/Export] 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, | stargazer(dataset, | ||
| Line 22: | Line 22: | ||
| | | ||
| | | ||
| - | ====Regressions==== | + | =====Regressions===== |
| linear | linear | ||
| Line 36: | Line 36: | ||
| | | ||
| | | ||
| - | ====Exemples==== | + | =====Exemples===== |
| install.packages(" | install.packages(" | ||
| install.packages(" | install.packages(" | ||
| Line 98: | Line 98: | ||
| db1 %>% ftab( sexe, age) | db1 %>% ftab( sexe, age) | ||
| - | ====Import/ | + | =====Import/ |
| import excel | import excel | ||
| library(readxl) | library(readxl) | ||
| Line 108: | Line 108: | ||
| View(db) | View(db) | ||
| | | ||
| + | import CSV | ||
| + | db <- read_csv(" | ||
| + | View(db) | ||
| + | |||
| export excel | export excel | ||
| install.packages(" | install.packages(" | ||
| Line 113: | Line 117: | ||
| write.xlsx(db, | write.xlsx(db, | ||
| + | =====Data Manipulation===== | ||
| + | |||
| + | ====drop publicates==== | ||
| + | newdata <- distinct(dataset, | ||