{
  "name": "Statistical file formats and the pyreadstat and haven functions that read and write them",
  "description": "Compares, for each SAS, SPSS and Stata file format, the pyreadstat read and write functions named in its official documentation with the haven read and write functions named on the haven project site. Compiled from the pyreadstat documentation and the haven home page; a dash means the source lists no such function.",
  "page": "https://casrai.org/guides/pyreadstat",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-25T09:55:00Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "File format",
      "unit": "",
      "description": ""
    },
    {
      "name": "pyreadstat read function",
      "unit": "",
      "description": ""
    },
    {
      "name": "pyreadstat write function",
      "unit": "",
      "description": ""
    },
    {
      "name": "haven read function",
      "unit": "",
      "description": ""
    },
    {
      "name": "haven write function",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "File format": "SAS data (.sas7bdat)",
      "pyreadstat read function": "read_sas7bdat",
      "pyreadstat write function": "write_sas7bdat",
      "haven read function": "read_sas",
      "haven write function": "-"
    },
    {
      "File format": "SAS catalog (.sas7bcat)",
      "pyreadstat read function": "read_sas7bcat",
      "pyreadstat write function": "-",
      "haven read function": "read_sas",
      "haven write function": "-"
    },
    {
      "File format": "SAS transport (.xpt)",
      "pyreadstat read function": "read_xport",
      "pyreadstat write function": "write_xport",
      "haven read function": "read_xpt",
      "haven write function": "write_xpt"
    },
    {
      "File format": "SPSS data (.sav)",
      "pyreadstat read function": "read_sav",
      "pyreadstat write function": "write_sav",
      "haven read function": "read_sav",
      "haven write function": "write_sav"
    },
    {
      "File format": "SPSS portable (.por)",
      "pyreadstat read function": "read_por",
      "pyreadstat write function": "write_por",
      "haven read function": "read_por",
      "haven write function": "-"
    },
    {
      "File format": "Stata data (.dta)",
      "pyreadstat read function": "read_dta",
      "pyreadstat write function": "write_dta",
      "haven read function": "read_dta",
      "haven write function": "write_dta"
    }
  ],
  "sources": [
    {
      "title": "pyreadstat documentation",
      "url": "https://ofajardo.github.io/pyreadstat_documentation/_build/html/index.html",
      "accessed": "2026-11-18"
    },
    {
      "title": "haven: Import and export SPSS, Stata and SAS files",
      "url": "https://haven.tidyverse.org/",
      "accessed": "2026-11-18"
    }
  ]
}