{
  "_id": "6a27274b24555f66ed52b490",
  "Package": "seine",
  "Title": "Semiparametric Ecological Inference",
  "Version": "0.1.2",
  "Authors@R": "c(\nperson(\"Cory\", \"McCartan\", , \"mccartan@psu.edu\", role = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0002-6251-669X\")),\nperson(\"Shiro\", \"Kuriwaki\", , \"shiro.kuriwaki@yale.edu\", role = c(\"aut\", \"cph\"),\ncomment = c(ORCID = \"0000-0002-5687-2647\"))\n)",
  "Description": "Efficient and user-friendly routines for modern ecological\ninference. Implements the methods described in McCartan &\nKuriwaki (2025+) <doi:10.48550/arXiv.2509.20194>, which\ngeneralize ecological regression as introduced by Goodman\n(1953) <doi:10.2307/2088121>. Includes routines for\npreprocessing, synthetic data generation, double/debiased\nmachine learning (DML) estimation, partial identification\nbounds, and sensitivity analysis.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "URL": "https://corymccartan.com/seine/,\nhttps://github.com/CoryMcCartan/seine",
  "BugReports": "https://github.com/CoryMcCartan/seine/issues",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/build/compilation-database": "true",
  "Config/roxygen2/version": "8.0.0",
  "Config/roxygen2/markdown": "TRUE",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-08 20:29:32 UTC",
    "User": "root"
  },
  "Author": "Cory McCartan [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0002-6251-669X>), Shiro Kuriwaki [aut,\ncph] (ORCID: <https://orcid.org/0000-0002-5687-2647>)",
  "Maintainer": "Cory McCartan <mccartan@psu.edu>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-06-08 16:32:45 UTC",
  "RemoteUrl": "https://github.com/cran/seine",
  "RemoteRef": "HEAD",
  "RemoteSha": "4c87fb47ad75967e75ff009dc3103f12e9f3f1f4",
  "MD5sum": "b9d8e04112bd146190943930ff34a7d8",
  "_user": "cran",
  "_type": "src",
  "_file": "seine_0.1.2.tar.gz",
  "_fileid": "7ef152b3478edb2ee8b0bc015b4fbe860d3a6d61d49f7de335150c41b18cd43e",
  "_filesize": 1233640,
  "_sha256": "7ef152b3478edb2ee8b0bc015b4fbe860d3a6d61d49f7de335150c41b18cd43e",
  "_created": "2026-06-08T20:29:32.000Z",
  "_published": "2026-06-08T20:34:19.637Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80190007368,
      "time": 212,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7491724282"
    },
    {
      "job": 80190007340,
      "time": 153,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7491702463"
    },
    {
      "job": 80190007424,
      "time": 169,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7491708991"
    },
    {
      "job": 80190007362,
      "time": 163,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7491705872"
    },
    {
      "job": 80189114658,
      "time": 287,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7491647218"
    },
    {
      "job": 80190007311,
      "time": 155,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7491703118"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/27164782950",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/seine",
  "_commit": {
    "id": "4c87fb47ad75967e75ff009dc3103f12e9f3f1f4",
    "author": "Cory McCartan <mccartan@psu.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.2\n",
    "time": 1780936365
  },
  "_maintainer": {
    "name": "Cory McCartan",
    "email": "mccartan@psu.edu",
    "login": "corymccartan",
    "bluesky": "@corymccartan.com",
    "description": "Assistant Professor of Statistics at Penn State, working on computational social science problems and open-source R software.",
    "uuid": 2958471,
    "orcid": "0000-0002-6251-669X"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "cpp11",
      "role": "LinkingTo"
    },
    {
      "package": "cpp11armadillo",
      "role": "LinkingTo"
    },
    {
      "package": "testthat",
      "role": "LinkingTo"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "hardhat",
      "role": "Imports"
    },
    {
      "package": "quadprog",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "bases",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "xml2",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-24",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.2",
      "date": "2026-06-08"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "corymccartan",
      "count": 1,
      "uuid": 2958471
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/seine"
  },
  "_devurl": "https://github.com/corymccartan/seine",
  "_pkgdown": "https://corymccartan.com/seine/",
  "_searchresults": 9,
  "_topics": [
    "openblas",
    "cpp",
    "openmp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/seine.html",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.2",
      "date": "2026-06-08"
    }
  ],
  "_exports": [
    "ei_bench",
    "ei_bounds",
    "ei_est",
    "ei_est_local",
    "ei_local_cov",
    "ei_proportions",
    "ei_ridge",
    "ei_ridge_impl",
    "ei_riesz",
    "ei_riesz_impl",
    "ei_sens",
    "ei_sens_rv",
    "ei_spec",
    "ei_synthetic",
    "ei_test_car",
    "ei_wgt_prop",
    "ei_wgt_sqrt",
    "ei_wgt_unif",
    "ei_wrap_model"
  ],
  "_datasets": [
    {
      "name": "elec_1968",
      "title": "1968 U.S. presidential election data",
      "object": "elec_1968",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "fips",
        "state",
        "abbr",
        "region",
        "division",
        "county",
        "pop",
        "pop_city",
        "pop_urban",
        "pop_rural",
        "pop_white",
        "pop_black",
        "pop_aian",
        "pop_asian",
        "pop_hisp",
        "vap",
        "vap_white",
        "vap_black",
        "vap_other",
        "farm",
        "nonfarm",
        "educ_elem",
        "educ_hsch",
        "educ_coll",
        "cvap",
        "cvap_white",
        "cvap_black",
        "cvap_other",
        "inc_00_03k",
        "inc_03_08k",
        "inc_08_25k",
        "inc_25_99k",
        "pres_dem_hum",
        "pres_rep_nix",
        "pres_ind_wal",
        "pres_abs",
        "pres_oth",
        "pres_total",
        "pres_turn",
        "pres_turn_icpsr",
        "adj"
      ],
      "rows": 1143,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "ei_bench",
      "title": "Benchmark sensitivity parameters from observed covariates",
      "topics": [
        "ei_bench"
      ]
    },
    {
      "page": "ei_bounds",
      "title": "Compute partial identification bounds on local ecological quantities",
      "topics": [
        "as.array.ei_bounds",
        "ei_bounds",
        "ei_bounds.data.frame",
        "ei_bounds.default",
        "ei_bounds.ei_spec",
        "ei_bounds.formula",
        "ei_bounds.matrix"
      ]
    },
    {
      "page": "ei_est",
      "title": "Estimate ecological quantities",
      "topics": [
        "as.matrix.ei_est",
        "ei_est",
        "nobs.ei_est",
        "vcov.ei_est"
      ]
    },
    {
      "page": "ei_est_local",
      "title": "Produce local ecological estimates",
      "topics": [
        "as.array.ei_est_local",
        "ei_est_local"
      ]
    },
    {
      "page": "ei_local_cov",
      "title": "Estimate the residual covariance of the local estimands",
      "topics": [
        "ei_local_cov"
      ]
    },
    {
      "page": "ei_proportions",
      "title": "Convert counts to proportions",
      "topics": [
        "ei_proportions"
      ]
    },
    {
      "page": "ei_ridge",
      "title": "Fit an ecological inference regression model",
      "topics": [
        "ei_ridge",
        "ei_ridge.data.frame",
        "ei_ridge.default",
        "ei_ridge.ei_spec",
        "ei_ridge.formula",
        "ei_ridge.matrix"
      ]
    },
    {
      "page": "ei-impl",
      "title": "Low-level implementations of 'ei_ridge()' and 'ei_riesz()'",
      "topics": [
        "ei_ridge_impl",
        "ei_riesz_impl"
      ]
    },
    {
      "page": "ei_riesz",
      "title": "Estimate Riesz representer for ecological inference",
      "topics": [
        "ei_riesz",
        "ei_riesz.data.frame",
        "ei_riesz.default",
        "ei_riesz.ei_spec",
        "ei_riesz.formula",
        "ei_riesz.matrix"
      ]
    },
    {
      "page": "ei_sens",
      "title": "Conduct a sensitivity analysis for estimated ecological quantities",
      "topics": [
        "ei_sens"
      ]
    },
    {
      "page": "ei_sens_rv",
      "title": "Robustness values for ecological inference",
      "topics": [
        "ei_sens_rv"
      ]
    },
    {
      "page": "ei_spec",
      "title": "Specify an ecological inference problem",
      "topics": [
        "ei_spec",
        "weights.ei_spec"
      ]
    },
    {
      "page": "ei_synthetic",
      "title": "Generate synthetic ecological data",
      "topics": [
        "ei_synthetic"
      ]
    },
    {
      "page": "ei_test_car",
      "title": "Test the coarsening at random (CAR) assumption",
      "topics": [
        "ei_test_car"
      ]
    },
    {
      "page": "ei_wgt",
      "title": "Estimation weighting models",
      "topics": [
        "ei_wgt",
        "ei_wgt_prop",
        "ei_wgt_sqrt",
        "ei_wgt_unif"
      ]
    },
    {
      "page": "ei_wrap_model",
      "title": "Wrap another predictive model for use in 'ei_est'",
      "topics": [
        "ei_wrap_model"
      ]
    },
    {
      "page": "elec_1968",
      "title": "1968 U.S. presidential election data",
      "topics": [
        "elec_1968"
      ]
    },
    {
      "page": "plot.ei_sens",
      "title": "Bias contour plot for ecological inference estimates",
      "topics": [
        "plot.ei_sens"
      ]
    },
    {
      "page": "plot.ei_spec",
      "title": "Plot an EI specification",
      "topics": [
        "plot.ei_spec"
      ]
    },
    {
      "page": "ridge-methods",
      "title": "Methods for 'ei_ridge' models",
      "topics": [
        "fitted.ei_ridge",
        "predict.ei_ridge",
        "residuals.ei_ridge",
        "ridge-methods",
        "summary.ei_ridge",
        "vcov.ei_ridge",
        "weights.ei_ridge"
      ]
    },
    {
      "page": "weights.ei_riesz",
      "title": "Extract Riesz representer weights",
      "topics": [
        "weights.ei_riesz"
      ]
    }
  ],
  "_pkglogo": "https://github.com/cran/seine/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/cran/seine/raw/HEAD/README.md",
  "_rundeps": [
    "brio",
    "callr",
    "cli",
    "cpp11",
    "cpp11armadillo",
    "crayon",
    "desc",
    "diffobj",
    "evaluate",
    "fs",
    "glue",
    "hardhat",
    "jsonlite",
    "lifecycle",
    "magrittr",
    "otel",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "pkgload",
    "praise",
    "processx",
    "ps",
    "quadprog",
    "R6",
    "rlang",
    "rprojroot",
    "sparsevctrs",
    "testthat",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "waldo",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "openmp",
      "homepage": "http://gcc.gnu.org/",
      "description": "GCC OpenMP (GOMP) support library"
    }
  ],
  "_vignettes": [
    {
      "source": "seine.Rmd",
      "filename": "seine.html",
      "title": "Analyzing aggregate data",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Preparing data",
        "Avoiding the ecological fallacy",
        "Ecological estimation",
        "Setup",
        "Fitting the regression",
        "Fitting the Riesz representer",
        "DML for ecological estimates",
        "Local estimates",
        "Sensitivity analysis",
        "References"
      ],
      "created": "2026-06-08 16:32:45",
      "modified": "2026-06-08 16:32:45",
      "commits": 1
    },
    {
      "source": "zzz_contour.Rmd",
      "filename": "zzz_contour.html",
      "title": "Custom sensitivity contour plots",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2026-06-08 16:32:45",
      "modified": "2026-06-08 16:32:45",
      "commits": 1
    },
    {
      "source": "local.Rmd",
      "filename": "local.html",
      "title": "Local estimates for ecological inference",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Setting up the analysis",
        "Partial identification bounds",
        "Estimating the local covariance",
        "Local point estimates",
        "References"
      ],
      "created": "2026-06-08 16:32:45",
      "modified": "2026-06-08 16:32:45",
      "commits": 1
    },
    {
      "source": "sensitivity.Rmd",
      "filename": "sensitivity.html",
      "title": "Sensitivity analysis for ecological inference",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Setting up the analysis",
        "Sensitivity analysis",
        "Benchmarking",
        "Bias contour plot",
        "Robustness value",
        "References"
      ],
      "created": "2026-06-08 16:32:45",
      "modified": "2026-06-08 16:32:45",
      "commits": 1
    },
    {
      "source": "test.Rmd",
      "filename": "test.html",
      "title": "Testing the CAR assumption",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What the test does",
        "Limitations",
        "References"
      ],
      "created": "2026-06-08 16:32:45",
      "modified": "2026-06-08 16:32:45",
      "commits": 1
    }
  ],
  "_score": 3.3979400086720375,
  "_indexed": true,
  "_nocasepkg": "seine",
  "_universes": [
    "cran",
    "corymccartan"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-08T20:33:03.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "4c87fb47ad75967e75ff009dc3103f12e9f3f1f4",
      "fileid": "377187c76d05da439782a0ec5d84eabd92b2104685d2ba10520241b7dde8564d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27164782950"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-08T20:32:04.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "4c87fb47ad75967e75ff009dc3103f12e9f3f1f4",
      "fileid": "51e5411e3aa33f4ed1be684df62b2c636643909228df008999ebec8154c05d78",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27164782950"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-08T20:32:23.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "4c87fb47ad75967e75ff009dc3103f12e9f3f1f4",
      "fileid": "0fa2c3f71e365304b3a99d6b3d89c3f9683d68617114c4b1635727279f5afa44",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27164782950"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2",
      "date": "2026-06-08T20:32:14.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "4c87fb47ad75967e75ff009dc3103f12e9f3f1f4",
      "fileid": "356f228325a06869aae1e366fe64cad18f06c8bdc31b648cdd135420a123290a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27164782950"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2",
      "date": "2026-06-08T20:32:34.000Z",
      "arch": "emscripten",
      "commit": "4c87fb47ad75967e75ff009dc3103f12e9f3f1f4",
      "fileid": "06edc71a627763177690bd0b62534d9ba769475a2e223ea97bcfe402e7a5dc79",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/27164782950"
    }
  ]
}