{
  "_id": "6a49daa22c82cd3614823ab2",
  "Type": "Package",
  "Package": "multilevelPSA",
  "Title": "Multilevel Propensity Score Analysis",
  "Version": "1.3.1",
  "Date": "2025-11-17",
  "Authors@R": "person(\"Jason\", \"Bryer\", , \"jason@bryer.org\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-2454-0402\"))",
  "Description": "Conducts and visualizes propensity score analysis for\nmultilevel, or clustered data. Bryer & Pruzek (2011)\n<doi:10.1080/00273171.2011.636693>.",
  "License": "GPL (>= 2)",
  "URL": "https://jbryer.github.io/multilevelPSA/",
  "BugReports": "https://github.com/jbryer/multilevelPSA/issues/",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "Repository": "https://jbryer.r-universe.dev",
  "Date/Publication": "2025-11-17 15:36:22 UTC",
  "RemoteUrl": "https://github.com/jbryer/multilevelpsa",
  "RemoteRef": "HEAD",
  "RemoteSha": "2b197303c262aa364087d4dfd7eda0b850ca1c98",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-15 09:18:04 UTC",
    "User": "root"
  },
  "Author": "Jason Bryer [aut, cre] (ORCID: <https://orcid.org/0000-0002-2454-0402>)",
  "Maintainer": "Jason Bryer <jason@bryer.org>",
  "_user": "jbryer",
  "_type": "src",
  "_file": "multilevelPSA_1.3.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/e7b67a41526e388c207c7e070c064ba9bedfdffaaaaa2451900a1e863d2220f3",
  "_filesize": 3557988,
  "_sha256": "e7b67a41526e388c207c7e070c064ba9bedfdffaaaaa2451900a1e863d2220f3",
  "_expires": "2026-10-13T04:16:32.000Z",
  "_created": "2026-06-15T09:18:04.000Z",
  "_published": "2026-07-05T04:16:34.350Z",
  "_jobs": [
    {
      "job": 85191891821,
      "time": 186,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7633917734"
    },
    {
      "job": 85191891709,
      "time": 165,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7633909784"
    },
    {
      "job": 85191891637,
      "time": 140,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7633900957"
    },
    {
      "job": 85191891663,
      "time": 124,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7633894757"
    },
    {
      "job": 85191891549,
      "time": 250,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7633847298"
    },
    {
      "job": 85191891667,
      "time": 140,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7633900467"
    },
    {
      "job": 85191891727,
      "time": 122,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7633893879"
    },
    {
      "job": 85191891765,
      "time": 139,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7633901398"
    },
    {
      "job": 85191891804,
      "time": 121,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7633893615"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/jbryer/actions/runs/27536110097",
  "_status": "success",
  "_upstream": "https://github.com/jbryer/multilevelpsa",
  "_commit": {
    "id": "2b197303c262aa364087d4dfd7eda0b850ca1c98",
    "author": "Jason Bryer <jason@bryer.org>",
    "committer": "Jason Bryer <jason@bryer.org>",
    "message": "Updated documentation.\n",
    "time": 1763393782
  },
  "_maintainer": {
    "name": "Jason Bryer",
    "email": "jason@bryer.org",
    "login": "jbryer",
    "mastodon": "@jbryer@vis.social",
    "orcid": "0000-0002-2454-0402",
    "twitter": "@jbryer",
    "description": "Assistant Professor and Associate Director, Data Science and Information Systems, School of Professional Studies, CUNY",
    "uuid": 623759
  },
  "_distro": "noble",
  "_registered": true,
  "_dependencies": [
    {
      "package": "ggplot2",
      "role": "Depends"
    },
    {
      "package": "R",
      "version": ">= 3.0",
      "role": "Depends"
    },
    {
      "package": "xtable",
      "role": "Depends"
    },
    {
      "package": "grid",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "party",
      "role": "Imports"
    },
    {
      "package": "plyr",
      "role": "Imports"
    },
    {
      "package": "PSAgraphics",
      "role": "Imports"
    },
    {
      "package": "psych",
      "role": "Imports"
    },
    {
      "package": "reshape",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "MatchIt",
      "role": "Suggests"
    },
    {
      "package": "mice",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "jbryer",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-47",
      "n": 3
    }
  ],
  "_tags": [],
  "_stars": 16,
  "_contributors": [
    {
      "user": "jbryer",
      "count": 149,
      "uuid": 623759
    },
    {
      "user": "compstats",
      "count": 6,
      "uuid": 3411643
    }
  ],
  "_userbio": {
    "uuid": 623759,
    "type": "user",
    "name": "Jason Bryer",
    "followers": 339,
    "description": "Assistant Professor and Associate Director, Data Science and Information Systems, School of Professional Studies, CUNY"
  },
  "_downloads": {
    "count": 258,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/multilevelPSA"
  },
  "_devurl": "https://github.com/jbryer/multilevelpsa",
  "_pkgdown": "https://jbryer.github.io/multilevelPSA/",
  "_searchresults": 101,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/multilevelPSA.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/jbryer/multilevelpsa",
  "_realowner": "jbryer",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0",
      "date": "2013-02-13"
    },
    {
      "version": "1.2",
      "date": "2013-05-10"
    },
    {
      "version": "1.2.2",
      "date": "2014-11-25"
    },
    {
      "version": "1.2.3",
      "date": "2015-11-05"
    },
    {
      "version": "1.2.4",
      "date": "2015-12-28"
    },
    {
      "version": "1.2.5",
      "date": "2018-03-22"
    },
    {
      "version": "1.3.0",
      "date": "2025-04-04"
    },
    {
      "version": "1.3.1",
      "date": "2025-11-17"
    }
  ],
  "_exports": [
    "covariate.balance",
    "difftable.plot",
    "getPropensityScores",
    "getStrata",
    "is.mlpsa",
    "loess.plot",
    "lsos",
    "missing.plot",
    "mlpsa",
    "mlpsa.circ.plot",
    "mlpsa.ctree",
    "mlpsa.difference.plot",
    "mlpsa.distribution.plot",
    "mlpsa.logistic",
    "psrange",
    "tree.plot"
  ],
  "_datasets": [
    {
      "name": "pisa.colnames",
      "title": "Mapping of variables in 'pisana' with full descriptions.",
      "object": "pisa.colnames",
      "file": "pisa.colnames.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Variable",
        "ShortDesc",
        "Desc"
      ],
      "rows": 50,
      "table": true,
      "tojson": true
    },
    {
      "name": "pisa.countries",
      "title": "Data frame mapping PISA countries to their three letter abbreviation.",
      "object": "pisa.countries",
      "file": "pisa.countries.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "CNT3",
        "Country"
      ],
      "rows": 65,
      "table": true,
      "tojson": true
    },
    {
      "name": "pisa.psa.cols",
      "title": "Character vector representing the list of covariates used for estimating propensity scores.",
      "object": "pisa.psa.cols",
      "file": "pisa.psa.cols.rda",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "pisana",
      "title": "North American (i.e. Canada, Mexico, and United States) student results of the 2009 Programme of International Student Assessment.",
      "object": "pisana",
      "file": "pisana.rda",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Country",
        "CNT",
        "SCHOOLID",
        "ST01Q01",
        "ST04Q01",
        "ST05Q01",
        "ST06Q01",
        "ST07Q01",
        "ST08Q01",
        "ST08Q02",
        "ST08Q03",
        "ST08Q04",
        "ST08Q05",
        "ST08Q06",
        "ST10Q01",
        "ST12Q01",
        "ST14Q01",
        "ST16Q01",
        "ST19Q01",
        "ST20Q01",
        "ST20Q02",
        "ST20Q03",
        "ST20Q04",
        "ST20Q05",
        "ST20Q06",
        "ST20Q07",
        "ST20Q08",
        "ST20Q09",
        "ST20Q10",
        "ST20Q12",
        "ST20Q13",
        "ST20Q14",
        "ST21Q01",
        "ST21Q02",
        "ST21Q03",
        "ST21Q04",
        "ST21Q05",
        "ST22Q01",
        "ST23Q01",
        "ST31Q01",
        "ST31Q02",
        "ST31Q03",
        "ST31Q05",
        "ST31Q06",
        "ST31Q07",
        "ST32Q01",
        "ST32Q02",
        "ST32Q03",
        "PV1MATH",
        "PV2MATH",
        "PV3MATH",
        "PV4MATH",
        "PV5MATH",
        "PV1READ",
        "PV2READ",
        "PV3READ",
        "PV4READ",
        "PV5READ",
        "PV1SCIE",
        "PV2SCIE",
        "PV3SCIE",
        "PV4SCIE",
        "PV5SCIE",
        "PUBPRIV",
        "STRATIO"
      ],
      "rows": 66548,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "multilevelPSA-package",
      "title": "Multilevel Propensity Score Analysis",
      "topics": [
        "multilevelPSA-package",
        "multilevelPSA"
      ]
    },
    {
      "page": "align.plots",
      "title": "Adapted from ggExtra package which is no longer available. This is related to an experimental mlpsa plot that will combine the circular plot along with the two individual distributions.",
      "topics": [
        "align.plots"
      ]
    },
    {
      "page": "as.data.frame.covariate.balance",
      "title": "Returns the overall effects as a data frame.",
      "topics": [
        "as.data.frame.covariate.balance"
      ]
    },
    {
      "page": "covariate.balance",
      "title": "Estimate covariate effect sizes before and after propensity score adjustment.",
      "topics": [
        "covariate.balance"
      ]
    },
    {
      "page": "covariateBalance",
      "title": "Calculate covariate effect size differences before and after stratification.",
      "topics": [
        "covariateBalance"
      ]
    },
    {
      "page": "cv.trans.psa",
      "title": "Transformation of Factors to Individual Levels",
      "topics": [
        "cv.trans.psa"
      ]
    },
    {
      "page": "difftable.plot",
      "title": "This function produces a ggplot2 figure containing the mean differences for each level two, or cluster.",
      "topics": [
        "difftable.plot"
      ]
    },
    {
      "page": "getPropensityScores",
      "title": "Returns a data frame with two columns corresponding to the level 2 variable and the fitted value from the logistic regression.",
      "topics": [
        "getPropensityScores"
      ]
    },
    {
      "page": "getStrata",
      "title": "Returns a data frame with two columns corresponding to the level 2 variable and the leaves from the conditional inference trees.",
      "topics": [
        "getStrata"
      ]
    },
    {
      "page": "is.mlpsa",
      "title": "Returns true if the object is of type 'mlpsa'",
      "topics": [
        "is.mlpsa"
      ]
    },
    {
      "page": "loess.plot",
      "title": "Loess plot with density distributions for propensity scores and outcomes on top and right, respectively.",
      "topics": [
        "loess.plot"
      ]
    },
    {
      "page": "lsos",
      "title": "Nicer list of objects in memory. Particularly useful for analysis of large data. https://stackoverflow.com/questions/1358003/tricks-to-manage-the-available-memory-in-an-r-session",
      "topics": [
        "lsos"
      ]
    },
    {
      "page": "missing.plot",
      "title": "Returns a heat map graphic representing missingness of variables grouped by the given grouping vector.",
      "topics": [
        "missing.plot"
      ]
    },
    {
      "page": "mlpsa",
      "title": "This function will perform phase II of the multilevel propensity score analysis.",
      "topics": [
        "mlpsa"
      ]
    },
    {
      "page": "mlpsa.circ.plot",
      "title": "Plots the results of a multilevel propensity score model.",
      "topics": [
        "mlpsa.circ.plot"
      ]
    },
    {
      "page": "mlpsa.ctree",
      "title": "Estimates propensity scores using the recursive partitioning in a conditional inference framework.",
      "topics": [
        "mlpsa.ctree"
      ]
    },
    {
      "page": "mlpsa.difference.plot",
      "title": "Creates a graphic summarizing the differences between treatment and comparison groups within and across level two clusters.",
      "topics": [
        "mlpsa.difference.plot"
      ]
    },
    {
      "page": "mlpsa.distribution.plot",
      "title": "Plots distribution for either the treatment or comparison group.",
      "topics": [
        "mlpsa.distribution.plot"
      ]
    },
    {
      "page": "mlpsa.logistic",
      "title": "Estimates propensity scores using logistic regression.",
      "topics": [
        "mlpsa.logistic"
      ]
    },
    {
      "page": "pisa.colnames",
      "title": "Mapping of variables in `pisana` with full descriptions.",
      "topics": [
        "pisa.colnames"
      ]
    },
    {
      "page": "pisa.countries",
      "title": "Data frame mapping PISA countries to their three letter abbreviation.",
      "topics": [
        "pisa.countries"
      ]
    },
    {
      "page": "pisa.psa.cols",
      "title": "Character vector representing the list of covariates used for estimating propensity scores.",
      "topics": [
        "pisa.psa.cols"
      ]
    },
    {
      "page": "pisana",
      "title": "North American (i.e. Canada, Mexico, and United States) student results of the 2009 Programme of International Student Assessment.",
      "topics": [
        "pisana"
      ]
    },
    {
      "page": "plot.covariate.balance",
      "title": "Multiple covariate balance assessment plot.",
      "topics": [
        "plot.covariate.balance"
      ]
    },
    {
      "page": "plot.mlpsa",
      "title": "Plots the results of a multilevel propensity score model.",
      "topics": [
        "plot.mlpsa"
      ]
    },
    {
      "page": "plot.psrange",
      "title": "Plots densities and ranges for the propensity scores.",
      "topics": [
        "plot.psrange"
      ]
    },
    {
      "page": "print.covariate.balance",
      "title": "Prints the overall effects before and after propensity score adjustment.",
      "topics": [
        "print.covariate.balance"
      ]
    },
    {
      "page": "print.mlpsa",
      "title": "Prints basic information about a 'mlpsa' class.",
      "topics": [
        "print.mlpsa"
      ]
    },
    {
      "page": "print.psrange",
      "title": "Prints information about a psrange result.",
      "topics": [
        "print.psrange"
      ]
    },
    {
      "page": "print.xmlpsa",
      "title": "Prints the results of [mlpsa()] and [xtable.mlpsa()].",
      "topics": [
        "print.xmlpsa"
      ]
    },
    {
      "page": "psrange",
      "title": "Estimates models with increasing number of comparison subjects starting from 1:1 to using all available comparison group subjects.",
      "topics": [
        "psrange"
      ]
    },
    {
      "page": "summary.mlpsa",
      "title": "Provides a summary of a 'mlpsa' class.",
      "topics": [
        "summary.mlpsa"
      ]
    },
    {
      "page": "summary.psrange",
      "title": "Prints the summary results of psrange.",
      "topics": [
        "summary.psrange"
      ]
    },
    {
      "page": "tree.plot",
      "title": "Heat map representing variables used in a conditional inference tree across level 2 variables.",
      "topics": [
        "tree.plot"
      ]
    },
    {
      "page": "xtable.mlpsa",
      "title": "Prints the results of [mlpsa()] as a LaTeX table.",
      "topics": [
        "xtable.mlpsa"
      ]
    }
  ],
  "_readme": "https://github.com/jbryer/multilevelpsa/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "codetools",
    "coin",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "GPArotation",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "libcoin",
    "lifecycle",
    "MASS",
    "Matrix",
    "matrixStats",
    "mnormt",
    "modeltools",
    "multcomp",
    "mvtnorm",
    "nlme",
    "party",
    "plyr",
    "PSAgraphics",
    "psych",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "reshape",
    "rlang",
    "rpart",
    "S7",
    "sandwich",
    "scales",
    "strucchange",
    "survival",
    "TH.data",
    "vctrs",
    "viridisLite",
    "withr",
    "xtable",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "multilevelPSA.Rmd",
      "filename": "multilevelPSA.html",
      "title": "Multilevel Propensity Score Analysis",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Working Example"
      ],
      "created": "2025-04-03 13:37:33",
      "modified": "2025-04-03 13:37:33",
      "commits": 1
    },
    {
      "source": "shrinking_fitted_values.Rmd",
      "filename": "shrinking_fitted_values.html",
      "title": "Shrinking Fitted Values from Logistic Regression",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2025-11-17 15:32:49",
      "modified": "2025-11-17 15:32:49",
      "commits": 1
    }
  ],
  "_score": 6.208441356438568,
  "_indexed": true,
  "_nocasepkg": "multilevelpsa",
  "_universes": [
    "jbryer"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.1",
      "date": "2026-06-15T09:20:42.000Z",
      "distro": "noble",
      "commit": "2b197303c262aa364087d4dfd7eda0b850ca1c98",
      "fileid": "https://r2.ropensci.org/6932e14c0a6bdac3f4afc9666924e77f2c03c6d4d82d23df86d961ba50412fcf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jbryer/actions/runs/27536110097"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.3.1",
      "date": "2026-06-15T09:20:26.000Z",
      "distro": "noble",
      "commit": "2b197303c262aa364087d4dfd7eda0b850ca1c98",
      "fileid": "https://r2.ropensci.org/8d59459a49384c188e14268e5148570fc8dc25fee697cf4c630beeef1f48ca00",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jbryer/actions/runs/27536110097"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3.1",
      "date": "2026-06-15T09:20:13.000Z",
      "commit": "2b197303c262aa364087d4dfd7eda0b850ca1c98",
      "fileid": "https://r2.ropensci.org/e0447d0238121c7c1e1afcc834bcd4401e9d284462f97c80582e6990b5986bba",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jbryer/actions/runs/27536110097"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.3.1",
      "date": "2026-06-15T09:19:54.000Z",
      "commit": "2b197303c262aa364087d4dfd7eda0b850ca1c98",
      "fileid": "https://r2.ropensci.org/36f21c2fc9a2ee08c24feff330ac5ccdd776d2b1c7771a557d69e2da1111c811",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jbryer/actions/runs/27536110097"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3.1",
      "date": "2026-06-15T09:20:47.000Z",
      "commit": "2b197303c262aa364087d4dfd7eda0b850ca1c98",
      "fileid": "https://r2.ropensci.org/4bf6564551431c7e5a2b96cff5224c426a157fc3a171cc002aa9e88c10708d6b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jbryer/actions/runs/27536110097"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.1",
      "date": "2026-06-15T09:19:33.000Z",
      "commit": "2b197303c262aa364087d4dfd7eda0b850ca1c98",
      "fileid": "https://r2.ropensci.org/7a9e6337a541aca27fe4fcf5a22b9edfe3ed37c2b40584565be5a51bfdbecddc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jbryer/actions/runs/27536110097"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.3.1",
      "date": "2026-06-15T09:19:48.000Z",
      "commit": "2b197303c262aa364087d4dfd7eda0b850ca1c98",
      "fileid": "https://r2.ropensci.org/c72a2b431d8ed9ff0d9b4f0757c8cf88e6a6d4e18a0a95e40169b7e68b1b6357",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jbryer/actions/runs/27536110097"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.3.1",
      "date": "2026-06-15T09:19:32.000Z",
      "commit": "2b197303c262aa364087d4dfd7eda0b850ca1c98",
      "fileid": "https://r2.ropensci.org/b8265e8bf8ed120cb07ad8c3d45f8fd89b53a10028305d3b2482cc2264b182a0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jbryer/actions/runs/27536110097"
    }
  ]
}