{
  "_id": "6a104240acfb0bcc41c9dafd",
  "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-05-11 07:26:35 UTC",
    "User": "root"
  },
  "Author": "Xiang Zhou [cre],\nDerick da Silva Baum [aut]",
  "Maintainer": "Xiang Zhou <xiang_zhou@fas.harvard.edu>",
  "MD5sum": "abdaa5106f3b085425d5fcf78747f59e",
  "_user": "xiangzhou09",
  "_type": "src",
  "_file": "rbw_0.3.2.tar.gz",
  "_fileid": "330e5ebe3472bc89d73e46e12f284ec86239659a88ec3d6bac4cc03ad5c50266",
  "_filesize": 1618374,
  "_sha256": "330e5ebe3472bc89d73e46e12f284ec86239659a88ec3d6bac4cc03ad5c50266",
  "_created": "2026-05-11T07:26:35.000Z",
  "_published": "2026-05-22T11:47:12.962Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77373204066,
      "time": 137,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6912613942"
    },
    {
      "job": 77373203641,
      "time": 131,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6912612950"
    },
    {
      "job": 77373203906,
      "time": 154,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6912612142"
    },
    {
      "job": 77373203880,
      "time": 163,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6912614437"
    },
    {
      "job": 77373203654,
      "time": 157,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6912569652"
    },
    {
      "job": 77373203336,
      "time": 114,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7159725947"
    },
    {
      "job": 77373203777,
      "time": 101,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6912601470"
    },
    {
      "job": 77373203703,
      "time": 82,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6912595395"
    },
    {
      "job": 77373203794,
      "time": 87,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6912597324"
    }
  ],
  "_buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/25656222800",
  "_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",
    "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": 217,
    "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-05-11T07:28:52.000Z",
      "distro": "noble",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "b706824c72d02b16c7b25b8dff5af12cf561d7618fb916de6cb32ce0a35c5459",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/25656222800"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.2",
      "date": "2026-05-11T07:28:47.000Z",
      "distro": "noble",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "c418f6f5ab925f98558c3730d2313ff920b13589a791f272a4e3f32a4a267ece",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/25656222800"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.2",
      "date": "2026-05-11T07:28:49.000Z",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "b091c62a2fa473aefd967f241ccb3892695bbfc8e75eecebc1f981aa85085176",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/25656222800"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.2",
      "date": "2026-05-11T07:28:53.000Z",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "5d2da7858e3f0a5947c783747ec6f5de4eabba86f8b6ad008e8119596b288840",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/25656222800"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.2",
      "date": "2026-05-11T07:28:03.000Z",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "24b873860b42bfef9d176cf9d7fe84803f498beb85fda086d079cc83dd58598e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/25656222800"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.2",
      "date": "2026-05-11T07:27:46.000Z",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "d2e1729fec95a440a86ae4e13848e3833b5af8f756c809e788d19367a2940279",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/25656222800"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.2",
      "date": "2026-05-11T07:27:54.000Z",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "3b95ded8971e7ec437c39368731443f3d97bd791cbb677d26b3c409ea4a52267",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/25656222800"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.2",
      "date": "2026-05-22T11:46:52.000Z",
      "commit": "78b6c94e7f8acf34100e659c263be15cb84f8beb",
      "fileid": "d79ce522369a0ae3895e0d5e69e277344dc7a7b26e60f55c847200a1378bc585",
      "status": "success",
      "buildurl": "https://github.com/r-universe/xiangzhou09/actions/runs/25656222800"
    }
  ]
}