{
  "_id": "6a2be8593efcd9bda42ce5ae",
  "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-06-12 11:03:44 UTC",
    "User": "root"
  },
  "Author": "Xiang Zhou [cre],\nDerick da Silva Baum [aut]",
  "Maintainer": "Xiang Zhou <xiang_zhou@fas.harvard.edu>",
  "MD5sum": "e7f22739c776e6a52a5af5fd7d9884a2",
  "_user": "xiangzhou09",
  "_type": "src",
  "_file": "rbw_0.3.2.tar.gz",
  "_fileid": "4fa950804b30d410b01e5d34db4e98d35300332580e86ac4e2b14fa6c792c245",
  "_filesize": 1618367,
  "_sha256": "4fa950804b30d410b01e5d34db4e98d35300332580e86ac4e2b14fa6c792c245",
  "_created": "2026-06-12T11:03:44.000Z",
  "_published": "2026-06-12T11:07:05.245Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 81014293841,
      "time": 107,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7589866696"
    },
    {
      "job": 81014293843,
      "time": 131,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7589874008"
    },
    {
      "job": 81014293874,
      "time": 117,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7589884269"
    },
    {
      "job": 81014293864,
      "time": 100,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7589870008"
    },
    {
      "job": 81013852888,
      "time": 171,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7589832869"
    },
    {
      "job": 81014293859,
      "time": 108,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7589866869"
    },
    {
      "job": 81014293839,
      "time": 99,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7589865118"
    },
    {
      "job": 81014293870,
      "time": 77,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7589857748"
    },
    {
      "job": 81014293858,
      "time": 101,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7589864725"
    }
  ],
  "_buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/27411550843",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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
  },
  "_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"
  },
  "_downloads": {
    "count": 210,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/rbw"
  },
  "_devurl": "https://github.com/xiangzhou09/rbw",
  "_searchresults": 5,
  "_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/rbw.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_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-06-12T11:05:28.000Z",
      "distro": "noble",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "0e957a772d5b09cf249b7229b4ad8f830472dc672f2905277fc40af410518017",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/27411550843"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.2",
      "date": "2026-06-12T11:05:50.000Z",
      "distro": "noble",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "2f0aa3a60a3176d6cbeaf9be30d2f9c982e52d5072d7b27df298787048769c5d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/27411550843"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.2",
      "date": "2026-06-12T11:06:24.000Z",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "3b139fff967d03752aaf7386fbbc83f84f59b5b6df3a10f36db010eaf19bcadd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/27411550843"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.2",
      "date": "2026-06-12T11:05:43.000Z",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "8fd5a15723c1b4a32824bd1385e9066d5f990b5f6913f77ed786cd3b9aee4413",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/27411550843"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.2",
      "date": "2026-06-12T11:05:46.000Z",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "279cd46f6830b948420f16c4bf16d2b29184fff8eb7a51d6637b08ee2c558fa8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/27411550843"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.2",
      "date": "2026-06-12T11:05:16.000Z",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "ab0cebd6e8d2bc39a51dbbb8bf826e5d2c3aed1cc0cae7bf27d70c2d33ef09e0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/27411550843"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.2",
      "date": "2026-06-12T11:04:52.000Z",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "f07aeafb27960b5db81a6c88ff71811e852a12bb9933c690bcbf88b556ea62b4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/27411550843"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.2",
      "date": "2026-06-12T11:05:16.000Z",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "c5f2c078405f1d4da01f42afa744a1aad10d46f07feb524ce588cde6447993ec",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/27411550843"
    }
  ]
}