{
  "_id": "6a10aa79acfb0bcc41cbf06d",
  "Package": "rwa",
  "Type": "Package",
  "Title": "Perform a Relative Weights Analysis",
  "Version": "0.1.2.9000",
  "Authors@R": "person(given = \"Martin\",\nfamily = \"Chan\",\nrole = c(\"aut\", \"cre\"),\nemail = \"martinchan53@gmail.com\")",
  "Description": "Perform a Relative Weights Analysis (RWA) (a.k.a. Key\nDrivers Analysis) as per the method described in Tonidandel &\nLeBreton (2015) <DOI:10.1007/s10869-014-9351-z>, with its\noriginal roots in Johnson (2000)\n<DOI:10.1207/S15327906MBR3501_1>. In essence, RWA decomposes\nthe total variance predicted in a regression model into weights\nthat accurately reflect the proportional contribution of the\npredictor variables, which addresses the issue of\nmulti-collinearity. In typical scenarios, RWA returns similar\nresults to Shapley regression, but with a significant advantage\non computational performance.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "URL": "https://martinctc.github.io/rwa/, https://github.com/martinctc/rwa",
  "BugReports": "https://github.com/martinctc/rwa/issues",
  "RoxygenNote": "7.3.2",
  "Roxygen": "list(markdown = TRUE)",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Language": "en-US",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://martinctc.r-universe.dev",
  "Date/Publication": "2026-01-22 12:16:46 UTC",
  "RemoteUrl": "https://github.com/martinctc/rwa",
  "RemoteRef": "HEAD",
  "RemoteSha": "e13908aa33dbcc83c78efed9986eb190d5a3127e",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-22 18:50:04 UTC",
    "User": "root"
  },
  "Author": "Martin Chan [aut, cre]",
  "Maintainer": "Martin Chan <martinchan53@gmail.com>",
  "MD5sum": "7df2eebeb227948cb4779d869da58a33",
  "_user": "martinctc",
  "_type": "src",
  "_file": "rwa_0.1.2.9000.tar.gz",
  "_fileid": "09e9b7d984d671922e1c422b298ae131c4ed194429bdf5a8c7423c42b630b9a5",
  "_filesize": 435035,
  "_sha256": "09e9b7d984d671922e1c422b298ae131c4ed194429bdf5a8c7423c42b630b9a5",
  "_created": "2026-05-22T18:50:04.000Z",
  "_published": "2026-05-22T19:11:53.754Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77442988811,
      "time": 157,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7168118905"
    },
    {
      "job": 77442988807,
      "time": 146,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7168115600"
    },
    {
      "job": 77442988854,
      "time": 193,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7168410148"
    },
    {
      "job": 77442988819,
      "time": 167,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7168284566"
    },
    {
      "job": 77442407923,
      "time": 226,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7168035534"
    },
    {
      "job": 77442988800,
      "time": 113,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7168105446"
    },
    {
      "job": 77442988802,
      "time": 115,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7168093814"
    },
    {
      "job": 77442988829,
      "time": 90,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7168097907"
    },
    {
      "job": 77442988814,
      "time": 91,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7168090191"
    }
  ],
  "_buildurl": "https://github.com/r-universe/martinctc/actions/runs/26271141660",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/martinctc/rwa",
  "_commit": {
    "id": "e13908aa33dbcc83c78efed9986eb190d5a3127e",
    "author": "Martin Chan <martinchan53@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #7 from martinctc/feature/add-logistic-regression\n\nFeature: add logistic regression and multiple regression as options",
    "time": 1769084206
  },
  "_maintainer": {
    "name": "Martin Chan",
    "email": "martinchan53@gmail.com",
    "login": "martinctc",
    "description": "Data Science @ Microsoft Viva",
    "uuid": 17925865
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "boot",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "rlang",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    }
  ],
  "_owner": "martinctc",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-29",
      "n": 12
    },
    {
      "week": "2025-30",
      "n": 2
    },
    {
      "week": "2026-04",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2025-07-16"
    },
    {
      "name": "v0.1.1",
      "date": "2026-01-20"
    }
  ],
  "_topics": [
    "relative-weights",
    "rwa"
  ],
  "_stars": 16,
  "_contributors": [
    {
      "user": "martinctc",
      "count": 157,
      "uuid": 17925865
    },
    {
      "user": "michaelchirico",
      "count": 1,
      "uuid": 7606389
    }
  ],
  "_userbio": {
    "uuid": 17925865,
    "type": "user",
    "name": "Martin Chan",
    "description": "Data Science @ Microsoft Viva"
  },
  "_downloads": {
    "count": 487,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/rwa"
  },
  "_mentions": 1,
  "_devurl": "https://github.com/martinctc/rwa",
  "_pkgdown": "https://martinctc.github.io/rwa/",
  "_searchresults": 22,
  "_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/readme.html",
    "extra/readme.md",
    "extra/rwa.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/martinctc/rwa",
  "_realowner": "martinctc",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.3",
      "date": "2020-11-24"
    },
    {
      "version": "0.1.0",
      "date": "2025-07-16"
    },
    {
      "version": "0.1.1",
      "date": "2026-01-20"
    }
  ],
  "_exports": [
    "%>%",
    "plot_rwa",
    "remove_all_na_cols",
    "rwa",
    "rwa_logit",
    "rwa_multiregress"
  ],
  "_help": [
    {
      "page": "plot_rwa",
      "title": "Plot the rescaled importance values from the output of 'rwa()'",
      "topics": [
        "plot_rwa"
      ]
    },
    {
      "page": "remove_all_na_cols",
      "title": "Remove any columns where all the values are missing",
      "topics": [
        "remove_all_na_cols"
      ]
    },
    {
      "page": "rwa",
      "title": "Create a Relative Weights Analysis (RWA)",
      "topics": [
        "rwa"
      ]
    },
    {
      "page": "rwa_logit",
      "title": "Create a Relative Weights Analysis with logistic regression",
      "topics": [
        "rwa_logit"
      ]
    },
    {
      "page": "rwa_multiregress",
      "title": "Create a Relative Weights Analysis (RWA)",
      "topics": [
        "rwa_multiregress"
      ]
    }
  ],
  "_readme": "https://github.com/martinctc/rwa/raw/HEAD/README.md",
  "_rundeps": [
    "boot",
    "cli",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "bootstrap-confidence-intervals.Rmd",
      "filename": "bootstrap-confidence-intervals.html",
      "title": "Bootstrap Confidence Intervals for Relative Weights Analysis",
      "author": "Martin Chan",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Why Bootstrap for RWA?",
        "The Statistical Challenge",
        "Bootstrap Solution",
        "Basic Bootstrap Analysis",
        "Simple Bootstrap Example",
        "Understanding Bootstrap Output",
        "Advanced Bootstrap Features",
        "Comprehensive Bootstrap Analysis",
        "Bootstrap Parameters",
        "Rescaled Weight Confidence Intervals",
        "Important Considerations",
        "Why Rescaled CIs Are Problematic",
        "Real-World Applications",
        "Diamond Price Analysis",
        "Interpreting Results",
        "Best Practices",
        "1. Sample Size Guidelines",
        "2. Confidence Interval Interpretation",
        "3. Bootstrap Method Selection",
        "Performance Considerations",
        "Bootstrap Speed Tips",
        "Memory Usage",
        "Troubleshooting",
        "Common Bootstrap Issues",
        "Reporting Bootstrap Results",
        "Standard Reporting Format",
        "Example Report",
        "References",
        "Conclusion"
      ],
      "created": "2025-07-14 10:28:59",
      "modified": "2025-07-16 15:24:14",
      "commits": 4
    },
    {
      "source": "evaluating-rwa-method-reference.Rmd",
      "filename": "evaluating-rwa-method-reference.html",
      "title": "Evaluating the Tonidandel & LeBreton Relative Weights Analysis Method",
      "author": "Martin Chan",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Evaluation of the Tonidandel & LeBreton Relative Weights Analysis Method",
        "What is Relative Weights Analysis and How Does it Address Multicollinearity?",
        "Why is this useful for multicollinearity?",
        "Is RWA still a valid approach for evaluating predictor power under multicollinearity?",
        "Strengths of RWA Relative to Other Methods",
        "1. Superior to Standard Regression Coefficients (under multicollinearity)",
        "2. Better than Stepwise or Bivariate Ranking",
        "3. Advantages over Principal Component or Factor Approaches",
        "4. Comparable Outcome to Dominance Analysis, with Greater Speed and Extras",
        "5. Proven in Practice and Accessible",
        "Limitations and Comparisons: Where RWA Falls Short or Other Methods Prevail",
        "1. Not a Replacement for Theory or Causal Insight",
        "2. Dominance Analysis vs. RWA – a matter of precision vs. practicality:",
        "3. Multicollinearity still matters if it means redundancy",
        "4. Sample Size and Sampling Error",
        "5. Interpretation of Weights – Communication Challenges",
        "6. When other methods might be considered \"superior\"",
        "Considerations and Best Practices for Using RWA",
        "1. Ensure the Model is Well-Specified:",
        "2. Check Data and Assumptions:",
        "3. Adequate Sample Size:",
        "4. Interpreting the Output (Weights):",
        "5. Comparing Weights and Groups",
        "6. Use Case Scenarios – when to use RWA",
        "7. Presenting and Reporting Results:",
        "8. Be Mindful of Audience:",
        "Summary",
        "References"
      ],
      "created": "2025-07-16 15:24:14",
      "modified": "2026-01-20 17:27:01",
      "commits": 3
    },
    {
      "source": "introduction-to-rwa.Rmd",
      "filename": "introduction-to-rwa.html",
      "title": "Introduction to Relative Weights Analysis with the rwa Package",
      "author": "Martin Chan",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Background and Methodology",
        "What is Relative Weights Analysis?",
        "How RWA Works",
        "When to Use RWA",
        "Theoretical Foundation and Methodological Evaluation",
        "Core Methodological Insight",
        "Demonstrating RWA's Theoretical Properties",
        "Current Validity: Why RWA Remains Relevant",
        "Basic Usage",
        "Simple Example with mtcars",
        "Understanding the Output",
        "Interpreting the Results Table",
        "Controlling Output Sorting",
        "Advanced Features",
        "Adding Signs to Weights",
        "Visualization",
        "Bootstrap Confidence Intervals",
        "Quick Bootstrap Example",
        "Real-World Example: Diamond Price Analysis",
        "Comparison with Traditional Regression",
        "Methodological Advantages of RWA",
        "1. Superior to Standard Regression Under Multicollinearity",
        "2. Avoids Stepwise Selection Problems",
        "3. More Interpretable than Principal Components",
        "4. Computational Efficiency vs. Dominance Analysis",
        "Critical Limitations and When to Exercise Caution",
        "1. Not a Replacement for Theory",
        "2. The Redundancy Problem",
        "3. Sample Size and Stability",
        "Best Practices and Recommendations",
        "1. Sample Size Considerations",
        "2. Variable Selection and Model Specification",
        "3. When to Use RWA vs. Alternatives",
        "4. Reporting Results",
        "Troubleshooting Common Issues",
        "Multicollinearity Warnings",
        "Missing Data",
        "References",
        "Conclusion",
        "Key Takeaways",
        "The Bottom Line"
      ],
      "created": "2025-07-14 08:32:08",
      "modified": "2025-07-25 08:14:44",
      "commits": 9
    },
    {
      "source": "regression-methods.Rmd",
      "filename": "regression-methods.html",
      "title": "Regression Methods: Multiple and Logistic RWA",
      "author": "Martin Chan",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "When to Use Each Method",
        "Multiple Regression with rwa_multiregress()",
        "Basic Example with mtcars",
        "Interpreting Multiple Regression Results",
        "Using the applysigns Parameter",
        "Examining Correlation Structures",
        "Logistic Regression with rwa_logit()",
        "Creating a Binary Outcome",
        "Basic Logistic RWA",
        "Interpreting Logistic RWA Results",
        "Logistic RWA with Signs",
        "Using the rwa() Wrapper Function",
        "Auto-Detection of Binary Outcomes",
        "Explicit Method Selection",
        "Additional Features in rwa()",
        "Real-World Example: Iris Dataset",
        "Multiple Regression: Predicting Petal Length",
        "Logistic Regression: Predicting Species",
        "Comparing Methods",
        "Best Practices",
        "1. Choose the Right Method",
        "2. Check Your Data",
        "3. Consider Bootstrap for Inference",
        "Summary",
        "References"
      ],
      "created": "2026-01-22 12:16:46",
      "modified": "2026-01-22 12:16:46",
      "commits": 1
    }
  ],
  "_score": 6.3246939138617755,
  "_indexed": true,
  "_nocasepkg": "rwa",
  "_universes": [
    "martinctc"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.2.9000",
      "date": "2026-05-22T18:54:14.000Z",
      "distro": "noble",
      "commit": "e13908aa33dbcc83c78efed9986eb190d5a3127e",
      "fileid": "51e61c8e18c6425c8168cff436bdabe0482b97eef94c39fea9a56e213a52faf8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/martinctc/actions/runs/26271141660"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.2.9000",
      "date": "2026-05-22T18:54:04.000Z",
      "distro": "noble",
      "commit": "e13908aa33dbcc83c78efed9986eb190d5a3127e",
      "fileid": "3959bcf1ee9cb7178981f3a986b9eb08477571df18573ddcb5c7e39703c3d791",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/martinctc/actions/runs/26271141660"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.2.9000",
      "date": "2026-05-22T19:10:45.000Z",
      "commit": "e13908aa33dbcc83c78efed9986eb190d5a3127e",
      "fileid": "120e14e7ef46934e2473a0176b278a1b8d86a38e0d8bdecf009519497d0dcc09",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/martinctc/actions/runs/26271141660"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.2.9000",
      "date": "2026-05-22T19:03:47.000Z",
      "commit": "e13908aa33dbcc83c78efed9986eb190d5a3127e",
      "fileid": "b288232a8542dad83a878be9ee9d97d6996b26eaa86c2769345742b09adc5533",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/martinctc/actions/runs/26271141660"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.2.9000",
      "date": "2026-05-22T18:54:02.000Z",
      "commit": "e13908aa33dbcc83c78efed9986eb190d5a3127e",
      "fileid": "7ae1d1748d88b63d887497e8d40ec31ebbfa734e5a1a53dda38c741567d4b806",
      "status": "success",
      "buildurl": "https://github.com/r-universe/martinctc/actions/runs/26271141660"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.2.9000",
      "date": "2026-05-22T18:52:46.000Z",
      "commit": "e13908aa33dbcc83c78efed9986eb190d5a3127e",
      "fileid": "9a39470894bbea61feb2838bf7c24999941ff3b294e589c5400df0e112bb43fd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/martinctc/actions/runs/26271141660"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.2.9000",
      "date": "2026-05-22T18:53:03.000Z",
      "commit": "e13908aa33dbcc83c78efed9986eb190d5a3127e",
      "fileid": "788b29f084f80144b618af7990535ae1e0ffd50cebfba47ea311a4d1c5385482",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/martinctc/actions/runs/26271141660"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.2.9000",
      "date": "2026-05-22T18:52:31.000Z",
      "commit": "e13908aa33dbcc83c78efed9986eb190d5a3127e",
      "fileid": "f6f17bea927bf5ebe66da0cd023727b3414550dc9711a1625b75a73cb5a74c27",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/martinctc/actions/runs/26271141660"
    }
  ]
}