{
  "_id": "6a274a9824555f66ed5302cc",
  "Package": "optweight",
  "Type": "Package",
  "Title": "Optimization-Based Stable Balancing Weights",
  "Version": "2.0.1.9000",
  "Authors@R": "c(\nperson(\"Noah\", \"Greifer\", role = c(\"aut\", \"cre\"),\nemail = \"noah.greifer@gmail.com\",\ncomment=c(ORCID=\"0000-0003-3067-7154\"))\n)",
  "Description": "Use optimization to estimate weights that balance\ncovariates for binary, multi-category, continuous, and\nmultivariate treatments in the spirit of Zubizarreta (2015)\n<doi:10.1080/01621459.2015.1023805>. The degree of balance can\nbe specified for each covariate. In addition, sampling weights\ncan be estimated that allow a sample to generalize to a\npopulation specified with given target moments of covariates,\nas in matching-adjusted indirect comparison (MAIC).",
  "License": "GPL",
  "Encoding": "UTF-8",
  "URL": "https://ngreifer.github.io/optweight/,\nhttps://github.com/ngreifer/optweight",
  "BugReports": "https://github.com/ngreifer/optweight/issues",
  "VignetteBuilder": "knitr",
  "RoxygenNote": "7.3.3",
  "Roxygen": "list(markdown = TRUE)",
  "Config/testthat/edition": "3",
  "Remotes": [
    "ngreifer/arg"
  ],
  "Config/pak/sysreqs": "make",
  "Repository": "https://ngreifer.r-universe.dev",
  "Date/Publication": "2026-06-08 20:46:28 UTC",
  "RemoteUrl": "https://github.com/ngreifer/optweight",
  "RemoteRef": "HEAD",
  "RemoteSha": "4272a40b9df4517c800e3f11f111eb82e009ffa2",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-08 22:50:10 UTC",
    "User": "root"
  },
  "Author": "Noah Greifer [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-3067-7154>)",
  "Maintainer": "Noah Greifer <noah.greifer@gmail.com>",
  "MD5sum": "ee8bace6c3cdbda4fe136be7dbb57b89",
  "_user": "ngreifer",
  "_type": "src",
  "_file": "optweight_2.0.1.9000.tar.gz",
  "_fileid": "b8026677e7aa26ef5f14df1d95bc640b096b80e66a3a15367c8707f5e871e518",
  "_filesize": 690988,
  "_sha256": "b8026677e7aa26ef5f14df1d95bc640b096b80e66a3a15367c8707f5e871e518",
  "_created": "2026-06-08T22:50:10.000Z",
  "_published": "2026-06-08T23:04:56.791Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80212840678,
      "time": 164,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7494377151"
    },
    {
      "job": 80212840670,
      "time": 144,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7494372312"
    },
    {
      "job": 80212840680,
      "time": 101,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7494360429"
    },
    {
      "job": 80212840684,
      "time": 102,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7494361456"
    },
    {
      "job": 80212322656,
      "time": 244,
      "config": "source",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7494332668"
    },
    {
      "job": 80212840649,
      "time": 132,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7494368782"
    },
    {
      "job": 80212840658,
      "time": 662,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "7494508136"
    },
    {
      "job": 80212840661,
      "time": 836,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "7494549523"
    },
    {
      "job": 80212840671,
      "time": 784,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "ERROR",
      "artifact": "7494536027"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ngreifer/actions/runs/27171769735",
  "_status": "failure",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/ngreifer/optweight",
  "_commit": {
    "id": "4272a40b9df4517c800e3f11f111eb82e009ffa2",
    "author": "Noah Greifer <noah.greifer@gmail.com>",
    "committer": "Noah Greifer <noah.greifer@gmail.com>",
    "message": "Cleaning\n",
    "time": 1780951588
  },
  "_maintainer": {
    "name": "Noah Greifer",
    "email": "noah.greifer@gmail.com",
    "login": "ngreifer",
    "twitter": "@noah_greifer",
    "description": "Data Science Specialist at Harvard University Institute for Quantitative Social Science (IQSS)",
    "uuid": 20465600,
    "orcid": "0000-0003-3067-7154"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "osqp",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "arg",
      "version": ">= 0.1.0.9000",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 1.1.6",
      "role": "Imports"
    },
    {
      "package": "cli",
      "version": ">= 3.6.5",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "version": ">= 1.2-13",
      "role": "Imports"
    },
    {
      "package": "collapse",
      "version": ">= 2.1.5",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 4.0.0",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "cobalt",
      "version": ">= 4.6.0",
      "role": "Suggests"
    },
    {
      "package": "scs",
      "version": ">= 3.2.7",
      "role": "Suggests"
    },
    {
      "package": "clarabel",
      "version": ">= 0.10.1",
      "role": "Suggests"
    },
    {
      "package": "highs",
      "version": ">= 1.10.0-3",
      "role": "Suggests"
    },
    {
      "package": "lpSolve",
      "version": ">= 5.6.23",
      "role": "Suggests"
    },
    {
      "package": "WeightIt",
      "role": "Suggests"
    },
    {
      "package": "gbm",
      "role": "Suggests"
    },
    {
      "package": "marginaleffects",
      "role": "Suggests"
    },
    {
      "package": "sandwich",
      "role": "Suggests"
    },
    {
      "package": "fwb",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "ngreifer",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-34",
      "n": 14
    },
    {
      "week": "2025-37",
      "n": 20
    },
    {
      "week": "2025-38",
      "n": 1
    },
    {
      "week": "2026-03",
      "n": 9
    },
    {
      "week": "2026-04",
      "n": 3
    },
    {
      "week": "2026-08",
      "n": 2
    },
    {
      "week": "2026-12",
      "n": 3
    },
    {
      "week": "2026-15",
      "n": 2
    },
    {
      "week": "2026-24",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "causal-inference",
    "inverse-probability-weights",
    "observational-study",
    "optimization",
    "propensity-scores"
  ],
  "_stars": 9,
  "_contributors": [
    {
      "user": "ngreifer",
      "count": 230,
      "uuid": 20465600
    }
  ],
  "_userbio": {
    "uuid": 20465600,
    "type": "user",
    "name": "Noah Greifer",
    "description": "Data Science Specialist at Harvard University Institute for Quantitative Social Science (IQSS)"
  },
  "_downloads": {
    "count": 5183,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/optweight"
  },
  "_devurl": "https://github.com/ngreifer/optweight",
  "_pkgdown": "https://ngreifer.github.io/optweight/",
  "_searchresults": 28,
  "_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/optweight.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/ngreifer/optweight",
  "_realowner": "ngreifer",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2018-09-21"
    },
    {
      "version": "0.2.0",
      "date": "2018-10-17"
    },
    {
      "version": "0.2.1",
      "date": "2019-01-16"
    },
    {
      "version": "0.2.2",
      "date": "2019-03-04"
    },
    {
      "version": "0.2.3",
      "date": "2019-08-26"
    },
    {
      "version": "0.2.4",
      "date": "2019-09-03"
    },
    {
      "version": "0.2.5",
      "date": "2019-09-16"
    },
    {
      "version": "1.0.0",
      "date": "2025-09-09"
    },
    {
      "version": "2.0.0",
      "date": "2026-01-24"
    },
    {
      "version": "2.0.1",
      "date": "2026-03-19"
    }
  ],
  "_exports": [
    "check.targets",
    "check.tols",
    "optweight",
    "optweight.fit",
    "optweight.svy",
    "optweight.svy.fit",
    "optweightMV",
    "optweightMV.fit",
    "process_targets",
    "process_tols"
  ],
  "_help": [
    {
      "page": "optweight",
      "title": "Stable Balancing Weights",
      "topics": [
        "optweight",
        "optweight.fit"
      ]
    },
    {
      "page": "optweight.svy",
      "title": "Stable Balancing Weights for Generalization",
      "topics": [
        "optweight.svy",
        "optweight.svy.fit"
      ]
    },
    {
      "page": "optweightMV",
      "title": "Stable Balancing Weights for Multivariate Treatments",
      "topics": [
        "optweightMV",
        "optweightMV.fit"
      ]
    },
    {
      "page": "plot.optweight",
      "title": "Plot Dual Variables for Covariate Constraints",
      "topics": [
        "plot.optweight",
        "plot.optweight.svy",
        "plot.optweightMV"
      ]
    },
    {
      "page": "process_targets",
      "title": "Construct and Check Targets Input",
      "topics": [
        "check.targets",
        "print.optweight.targets",
        "process_targets"
      ]
    },
    {
      "page": "process_tols",
      "title": "Construct and Check Tolerance Input",
      "topics": [
        "check.tols",
        "print.optweight.tols",
        "process_tols"
      ]
    },
    {
      "page": "summary.optweight",
      "title": "Summarize, Print, and Plot Information about Estimated Weights",
      "topics": [
        "plot.summary.optweight",
        "summary.optweight",
        "summary.optweight.svy",
        "summary.optweightMV"
      ]
    }
  ],
  "_pkglogo": "https://github.com/ngreifer/optweight/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/ngreifer/optweight/raw/HEAD/README.md",
  "_rundeps": [
    "arg",
    "cli",
    "collapse",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "Matrix",
    "osqp",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_score": 5.769194263396418,
  "_indexed": true,
  "_nocasepkg": "optweight",
  "_universes": [
    "ngreifer"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0.1.9000",
      "date": "2026-06-08T22:52:50.000Z",
      "distro": "noble",
      "commit": "4272a40b9df4517c800e3f11f111eb82e009ffa2",
      "fileid": "8c9f7078d16cc616a0fcfe8751755215dee7c278e9779674717e6d1821e542c4",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/ngreifer/actions/runs/27171769735"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.0.1.9000",
      "date": "2026-06-08T22:52:32.000Z",
      "distro": "noble",
      "commit": "4272a40b9df4517c800e3f11f111eb82e009ffa2",
      "fileid": "57d78b299f314157f795b0947b392ec140a02e626f1380695fdc9415c369ad0c",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/ngreifer/actions/runs/27171769735"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.0.1.9000",
      "date": "2026-06-08T22:51:56.000Z",
      "commit": "4272a40b9df4517c800e3f11f111eb82e009ffa2",
      "fileid": "ea56e036422ed150a976f6f4b14a778b7d454cf1f463b5363d7a0ced952c3c93",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/ngreifer/actions/runs/27171769735"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.0.1.9000",
      "date": "2026-06-08T22:51:59.000Z",
      "commit": "4272a40b9df4517c800e3f11f111eb82e009ffa2",
      "fileid": "2268ff2152c64b12fbb6c3ba6da2b9b5c70ad38622112949387a41112c829ded",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/ngreifer/actions/runs/27171769735"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.0.1.9000",
      "date": "2026-06-08T22:52:47.000Z",
      "commit": "4272a40b9df4517c800e3f11f111eb82e009ffa2",
      "fileid": "cfdb380ac36f96a3959c90a051b8acc790f260e6fbd343d90c09a3e5cc8d754e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ngreifer/actions/runs/27171769735"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.0.1.9000",
      "date": "2026-06-08T23:01:22.000Z",
      "commit": "4272a40b9df4517c800e3f11f111eb82e009ffa2",
      "fileid": "19ca3ee776e0a46c8f9b7e841aa366b4a8ea7bbdb60a576367e48a2fff11d9bb",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/ngreifer/actions/runs/27171769735"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.0.1.9000",
      "date": "2026-06-08T23:03:53.000Z",
      "commit": "4272a40b9df4517c800e3f11f111eb82e009ffa2",
      "fileid": "52e84d8ce72daa790d7a675b89a18efc94757fc7358da6db7a84a4b43a71f6e9",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/ngreifer/actions/runs/27171769735"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.0.1.9000",
      "date": "2026-06-08T23:03:06.000Z",
      "commit": "4272a40b9df4517c800e3f11f111eb82e009ffa2",
      "fileid": "ac48b1658fb3b4611cf25bef800864831b59ba0261b5c7e0f09c931f12e57972",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/ngreifer/actions/runs/27171769735"
    }
  ]
}