{"id":16284762,"url":"https://github.com/pachadotdev/baltagi","last_synced_at":"2025-10-11T17:39:55.744Z","repository":{"id":191228017,"uuid":"683970331","full_name":"pachadotdev/baltagi","owner":"pachadotdev","description":"'Econometric Analysis of Panel Data' (ISBN 978-3-030-53952-8)  tidy datasets","archived":false,"fork":false,"pushed_at":"2023-08-28T17:13:29.000Z","size":958,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T18:52:20.072Z","etag":null,"topics":["econometrics","panel-data","rstats"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pachadotdev.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-28T07:08:48.000Z","updated_at":"2023-11-10T09:31:42.000Z","dependencies_parsed_at":"2023-08-28T23:25:08.516Z","dependency_job_id":null,"html_url":"https://github.com/pachadotdev/baltagi","commit_stats":null,"previous_names":["pachadotdev/baltagi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pachadotdev%2Fbaltagi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pachadotdev%2Fbaltagi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pachadotdev%2Fbaltagi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pachadotdev%2Fbaltagi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pachadotdev","download_url":"https://codeload.github.com/pachadotdev/baltagi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247952024,"owners_count":21023848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["econometrics","panel-data","rstats"],"created_at":"2024-10-10T19:20:48.643Z","updated_at":"2025-10-11T17:39:50.725Z","avatar_url":"https://github.com/pachadotdev.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# baltagi\n\n\u003c!-- badges: start --\u003e\n\u003c!-- badges: end --\u003e\n\n## About\n\n'Econometric Analysis of Panel Data' (ISBN 978-3-030-53952-8)\nprovides up-to-date coverage of basic panel data techniques, illustrated\nwith real economic applications and datasets. However, importing the\noriginal data from the book into R is not straightforward because\nsome of the datasets are available in Microsoft Word format. I provide the\ndatasets in tidy format, expecting that this will allow students to focus on\nthe econometric techniques rather than on data wrangling.\n\n## Installation\n\nYou can install the development version of baltagi like so:\n\n``` r\nremotes::install_github(\"pachadotdev/baltagi\")\n```\n\n## Example\n\nBaltagi, Song and Jung (2001) investigated the productivity of public capital in\neach US state's private output, which is discussed in section 9.6.1 of the book\n(Empirical Example: Nested States Public Capital Productivity).\n\nThe original dataset is in Microsoft Word format (DOCX). To read it, you would\nneed to copy it in Notepad, save as CSV , and then import it into R to find that\nthere are data wrangling steps involved to make it usable. Alternatively, you\ncan read the DOCX file directly in R with the `readtext` package and then\nproceed to the data wrangling.\n\n`baltagi` saves all those steps and you can jump directly to the econometric\nanalysis.\n\n```{r example}\nlibrary(baltagi)\nlibrary(plm)\n\nfit \u003c- plm(\n  log(gsp) ~ log(priv_cap) + log(hwy) + log(water) + log(util) + log(emp) +\n    unemp,\n  data = produc,\n  index = c(\"st_abb\", \"year\")\n)\n\nsummary(fit)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpachadotdev%2Fbaltagi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpachadotdev%2Fbaltagi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpachadotdev%2Fbaltagi/lists"}