{
  "_id": "6a1f217bb401979e7342068c",
  "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-05-16 07:35:17 UTC",
    "User": "root"
  },
  "Author": "Jason Bryer [aut, cre] (ORCID: <https://orcid.org/0000-0002-2454-0402>)",
  "Maintainer": "Jason Bryer <jason@bryer.org>",
  "MD5sum": "530879d4e924c8b577263d629ec2ce38",
  "_user": "jbryer",
  "_type": "src",
  "_file": "multilevelPSA_1.3.1.tar.gz",
  "_fileid": "2007040dba347e76b596528eea4d032571b1a6c35c8657cec47c361148039f2b",
  "_filesize": 3563505,
  "_sha256": "2007040dba347e76b596528eea4d032571b1a6c35c8657cec47c361148039f2b",
  "_created": "2026-05-16T07:35:17.000Z",
  "_published": "2026-06-02T18:31:23.057Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79143849979,
      "time": 182,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7031644782"
    },
    {
      "job": 79143850294,
      "time": 178,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031644362"
    },
    {
      "job": 79143849993,
      "time": 137,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7031639906"
    },
    {
      "job": 79143849945,
      "time": 146,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031640862"
    },
    {
      "job": 79143848788,
      "time": 244,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031624836"
    },
    {
      "job": 79143849007,
      "time": 126,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7366520606"
    },
    {
      "job": 79143850300,
      "time": 146,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7031640895"
    },
    {
      "job": 79143850166,
      "time": 141,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7031640344"
    },
    {
      "job": 79143850203,
      "time": 155,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031641894"
    }
  ],
  "_buildurl": "https://github.com/r-universe/jbryer/actions/runs/25956215631",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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",
    "uuid": 623759
  },
  "_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",
    "description": "Assistant Professor and Associate Director, Data Science and Information Systems, School of Professional Studies, CUNY"
  },
  "_downloads": {
    "count": 255,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/multilevelPSA"
  },
  "_devurl": "https://github.com/jbryer/multilevelpsa",
  "_pkgdown": "https://jbryer.github.io/multilevelPSA/",
  "_searchresults": 94,
  "_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.177247836255624,
  "_indexed": true,
  "_nocasepkg": "multilevelpsa",
  "_universes": [
    "jbryer"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.1",
      "date": "2026-05-16T07:37:50.000Z",
      "distro": "noble",
      "commit": "2b197303c262aa364087d4dfd7eda0b850ca1c98",
      "fileid": "1d7b8725e4d2cda1d6bc6a44462e138a79e5c226aba9649637aa60519474b855",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jbryer/actions/runs/25956215631"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.3.1",
      "date": "2026-05-16T07:37:48.000Z",
      "distro": "noble",
      "commit": "2b197303c262aa364087d4dfd7eda0b850ca1c98",
      "fileid": "5f25c5a4c2e23e6487904b914303d123c56d510062a633048edfdf90810a4c0b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jbryer/actions/runs/25956215631"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3.1",
      "date": "2026-05-16T07:37:27.000Z",
      "commit": "2b197303c262aa364087d4dfd7eda0b850ca1c98",
      "fileid": "ee4e196df53388b365c8cf4d1c99a8b3fe66f9a1408b8487a8df95b3f1c7d983",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jbryer/actions/runs/25956215631"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.3.1",
      "date": "2026-05-16T07:37:19.000Z",
      "commit": "2b197303c262aa364087d4dfd7eda0b850ca1c98",
      "fileid": "7792d3433705246ea272395c12e0269bc7cd5dc85a397cc5c9874d71cdbd48b9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jbryer/actions/runs/25956215631"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.1",
      "date": "2026-05-16T07:37:09.000Z",
      "commit": "2b197303c262aa364087d4dfd7eda0b850ca1c98",
      "fileid": "dd2aaa275e21096b177a99fb03e536926bc712ea7538e255730856b3c041055b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jbryer/actions/runs/25956215631"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.3.1",
      "date": "2026-05-16T07:37:05.000Z",
      "commit": "2b197303c262aa364087d4dfd7eda0b850ca1c98",
      "fileid": "a37c8f5c47e0f51f4112097fbe10959ebbf56046c2766f1e1bf9c5447c8bd3eb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jbryer/actions/runs/25956215631"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.3.1",
      "date": "2026-05-16T07:37:19.000Z",
      "commit": "2b197303c262aa364087d4dfd7eda0b850ca1c98",
      "fileid": "7a489a0ed1014ce52f57fa6fcbc892c1e1a1adc72f1dd706399978596da7d5cf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/jbryer/actions/runs/25956215631"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3.1",
      "date": "2026-06-02T18:31:05.000Z",
      "commit": "2b197303c262aa364087d4dfd7eda0b850ca1c98",
      "fileid": "5a315b26e93e5b35362cfcdca38257f99ea07611f431b08103097ad60484106d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/jbryer/actions/runs/25956215631"
    }
  ]
}