{
  "_id": "6acba704fe5cc25786e91d06",
  "Package": "rbw",
  "Type": "Package",
  "Date": "2022-03-01",
  "Title": "Residual Balancing Weights for Marginal Structural Models",
  "Version": "0.3.2",
  "Authors@R": "c(\nperson(\"Xiang\", \"Zhou\", email = \"xiang_zhou@fas.harvard.edu\", role = \"cre\"),\nperson(\"Derick da Silva\", \"Baum\", email = \"derick_baum@g.harvard.edu\", role = \"aut\"))",
  "Description": "Residual balancing is a robust method of constructing\nweights for marginal structural models, which can be used to\nestimate (a) the average treatment effect in a cross-sectional\nobservational study, (b) controlled direct/mediator effects in\ncausal mediation analysis, and (c) the effects of time-varying\ntreatments in panel data (Zhou and Wodtke 2020\n<doi:10.1017/pan.2020.2>). This package provides three\nfunctions, rbwPoint(), rbwMed(), and rbwPanel(), that produce\nresidual balancing weights for estimating (a), (b), (c),\nrespectively.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.1.1",
  "URL": "https://github.com/xiangzhou09/rbw",
  "BugReports": "https://github.com/xiangzhou09/rbw",
  "Config/testthat/edition": "3",
  "Repository": "https://xiangzhou09.r-universe.dev",
  "Date/Publication": "2022-03-01 15:27:27 UTC",
  "RemoteUrl": "https://github.com/xiangzhou09/rbw",
  "RemoteRef": "HEAD",
  "RemoteSha": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-11 15:06:17 UTC",
    "User": "root"
  },
  "Author": "Xiang Zhou [cre],\nDerick da Silva Baum [aut]",
  "Maintainer": "Xiang Zhou <xiang_zhou@fas.harvard.edu>",
  "_user": "xiangzhou09",
  "_type": "src",
  "_file": "rbw_0.3.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/b780f66298f2da7cca298dab884a5958877093197de421a323112f267fdc9abb",
  "_filesize": 1618439,
  "_sha256": "b780f66298f2da7cca298dab884a5958877093197de421a323112f267fdc9abb",
  "_expires": "2027-01-19T15:10:58.000Z",
  "_created": "2026-10-11T15:06:17.000Z",
  "_published": "2026-10-11T15:11:00.662Z",
  "_buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/38149701137",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 114501024116,
      "time": 117,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11705682583"
    },
    {
      "job": 114501024088,
      "time": 109,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11705503337"
    },
    {
      "job": 114501024195,
      "time": 205,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11706168432"
    },
    {
      "job": 114501024199,
      "time": 204,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11706338086"
    },
    {
      "job": 114500461257,
      "time": 162,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11706171809"
    },
    {
      "job": 114501024109,
      "time": 96,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11706372844"
    },
    {
      "job": 114501024207,
      "time": 89,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11705732437"
    },
    {
      "job": 114501024154,
      "time": 71,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11706272974"
    },
    {
      "job": 114501024293,
      "time": 70,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11705758707"
    }
  ],
  "_upstream": "https://github.com/xiangzhou09/rbw",
  "_commit": {
    "id": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
    "author": "xiangzhou09 <xiang_zhou@fas.harvard.edu>",
    "committer": "xiangzhou09 <xiang_zhou@fas.harvard.edu>",
    "message": "reformat code in rbwPanel()\n",
    "time": 1646148447
  },
  "_maintainer": {
    "name": "Xiang Zhou",
    "email": "xiang_zhou@fas.harvard.edu",
    "login": "xiangzhou09",
    "description": "",
    "uuid": 23618131
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "version": ">= 0.8.4",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 0.4.4",
      "role": "Imports"
    },
    {
      "package": "ebal",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "survey",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "xiangzhou09",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 9,
  "_contributors": [
    {
      "user": "xiangzhou09",
      "count": 76,
      "uuid": 23618131
    }
  ],
  "_userbio": {
    "uuid": 23618131,
    "type": "user",
    "name": "xiangzhou09",
    "followers": 32
  },
  "_downloads": {
    "count": 261,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/rbw"
  },
  "_devurl": "https://github.com/xiangzhou09/rbw",
  "_searchresults": 5,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/rbw.html",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/xiangzhou09/rbw",
  "_realowner": "xiangzhou09",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.0",
      "date": "2020-04-15"
    },
    {
      "version": "0.3.0",
      "date": "2021-09-22"
    },
    {
      "version": "0.3.1",
      "date": "2022-02-28"
    },
    {
      "version": "0.3.2",
      "date": "2022-03-01"
    }
  ],
  "_exports": [
    "eb2",
    "rbwMed",
    "rbwPanel",
    "rbwPoint"
  ],
  "_datasets": [
    {
      "name": "advertisement",
      "title": "Data on Political Advertisement and Campaign Contributions in US Presidential Elections",
      "object": "advertisement",
      "class": [
        "data.frame"
      ],
      "fields": [
        "zip",
        "treat",
        "TotAds",
        "TotalPop",
        "PercentOver65",
        "Inc",
        "PercentHispanic",
        "PercentBlack",
        "density",
        "per_collegegrads",
        "CanCommute",
        "StFIPS",
        "Cont",
        "log_TotalPop",
        "log_Inc"
      ],
      "rows": 16265,
      "table": true,
      "tojson": true
    },
    {
      "name": "campaign_long",
      "title": "Long-format Data on Negative Campaign Advertising in US Senate and Gubernatorial Elections",
      "object": "campaign_long",
      "class": [
        "data.frame"
      ],
      "fields": [
        "demName",
        "d.gone.neg",
        "d.gone.neg.l1",
        "camp.length",
        "deminc",
        "base.poll",
        "base.und",
        "office",
        "demprcnt",
        "week",
        "year",
        "state",
        "dem.polls",
        "dem.polls.l1",
        "undother",
        "undother.l1",
        "neg.dem",
        "neg.dem.l1",
        "id"
      ],
      "rows": 565,
      "table": true,
      "tojson": true
    },
    {
      "name": "campaign_wide",
      "title": "Wide-format Data on Negative Campaign Advertising in US Senate and Gubernatorial Elections",
      "object": "campaign_wide",
      "class": [
        "data.frame"
      ],
      "fields": [
        "demName",
        "camp.length",
        "deminc",
        "base.poll",
        "base.und",
        "office",
        "demprcnt",
        "year",
        "state",
        "id",
        "dem.polls_1",
        "d.gone.neg_1",
        "neg.dem_1",
        "undother_1",
        "dem.polls_2",
        "d.gone.neg_2",
        "neg.dem_2",
        "undother_2",
        "dem.polls_3",
        "d.gone.neg_3",
        "neg.dem_3",
        "undother_3",
        "dem.polls_4",
        "d.gone.neg_4",
        "neg.dem_4",
        "undother_4",
        "dem.polls_5",
        "d.gone.neg_5",
        "neg.dem_5",
        "undother_5",
        "cum_neg",
        "ave_neg"
      ],
      "rows": 113,
      "table": true,
      "tojson": true
    },
    {
      "name": "peace",
      "title": "Data on Public Support for War in a Sample of US Respondents",
      "object": "peace",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "threatc",
        "ally",
        "trade",
        "h1",
        "i1",
        "p1",
        "e1",
        "r1",
        "male",
        "white",
        "age",
        "ed4",
        "democ",
        "strike",
        "cost",
        "successc",
        "immoral"
      ],
      "rows": 1273,
      "table": true,
      "tojson": false
    }
  ],
  "_help": [
    {
      "page": "advertisement",
      "title": "Data on Political Advertisement and Campaign Contributions in US Presidential Elections",
      "topics": [
        "advertisement"
      ]
    },
    {
      "page": "campaign_long",
      "title": "Long-format Data on Negative Campaign Advertising in US Senate and Gubernatorial Elections",
      "topics": [
        "campaign_long"
      ]
    },
    {
      "page": "campaign_wide",
      "title": "Wide-format Data on Negative Campaign Advertising in US Senate and Gubernatorial Elections",
      "topics": [
        "campaign_wide"
      ]
    },
    {
      "page": "eb2",
      "title": "Function for Generating Minimum Entropy Weights Subject to a Set of Balancing Constraints",
      "topics": [
        "eb2"
      ]
    },
    {
      "page": "peace",
      "title": "Data on Public Support for War in a Sample of US Respondents",
      "topics": [
        "peace"
      ]
    },
    {
      "page": "rbwMed",
      "title": "Residual Balancing Weights for Causal Mediation Analysis",
      "topics": [
        "rbwMed"
      ]
    },
    {
      "page": "rbwPanel",
      "title": "Residual Balancing Weights for Analyzing Time-varying Treatments",
      "topics": [
        "rbwPanel"
      ]
    },
    {
      "page": "rbwPoint",
      "title": "Residual Balancing Weights for Estimating the Average Treatment Effect (ATE) in a Point Treatment Setting",
      "topics": [
        "rbwPoint"
      ]
    }
  ],
  "_readme": "https://github.com/xiangzhou09/rbw/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "dplyr",
    "generics",
    "glue",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "R6",
    "rlang",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "rbw-vignette.Rnw",
      "filename": "rbw-vignette.pdf",
      "title": "rbw: An R package for Constructing Residual BalancingWeights",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2022-03-01 04:44:41",
      "modified": "2022-03-01 04:44:41",
      "commits": 1
    }
  ],
  "_score": 4.653212513775344,
  "_indexed": true,
  "_nocasepkg": "rbw",
  "_universes": [
    "xiangzhou09"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.2",
      "date": "2026-10-11T15:08:16.000Z",
      "distro": "resolute",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "https://r2.ropensci.org/8233d8737b1e35b2118a77f57e14ae0e09a4f801a4f6682ecb17309e106c37d3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/38149701137"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.2",
      "date": "2026-10-11T15:08:09.000Z",
      "distro": "resolute",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "https://r2.ropensci.org/9af16d42958e465576b9db9613dd1c307a34cfd6fc0322f908e144314ddf41d5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/38149701137"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.2",
      "date": "2026-10-11T15:09:38.000Z",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "https://r2.ropensci.org/012bd10363c87a36a42df2aba8b35727dc04c77d775b659b37627859a19e76e1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/38149701137"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.2",
      "date": "2026-10-11T15:09:33.000Z",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "https://r2.ropensci.org/70dcaeaec6fe5e19dff8547f1f46b2b8f41037c16e3f616f2880d6ac032775f3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/38149701137"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.2",
      "date": "2026-10-11T15:08:12.000Z",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "https://r2.ropensci.org/74c681b927869a84cee78d03b66d5ff6adc9d22eec1c61438afc6083ab8f0205",
      "status": "success",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/38149701137"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.2",
      "date": "2026-10-11T15:07:37.000Z",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "https://r2.ropensci.org/bd6cb6edf68c8d92abcb70da42f540809b60abd235ef6de568d505bd2b82eafb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/38149701137"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.2",
      "date": "2026-10-11T15:07:30.000Z",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "https://r2.ropensci.org/fd2d3a6d4d05d8b27204066c8938a77d35c691ab4b1564ffb54142cd645930ce",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/38149701137"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.2",
      "date": "2026-10-11T15:07:23.000Z",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "https://r2.ropensci.org/b55d57b9d1f85edf6578cf5e4c09397cad8edeb531ad48b1625f922dcfd4b9eb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/38149701137"
    }
  ]
}