{ "info": { "author": "Dan Yang", "author_email": "dyang4@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# Relative Importance Calculator\n\n## Introduction\n\nKey driver analysis is a popular and powerful tool in marketing research to quantify the relative importance of individual drivers in predicting an outcome variable. For example, marketing researchers conduct key driver analysis using customer experience survey responses to understand which aspects of the customer experience would drive the customer overall satisfaction the most.\n\nAs drivers are often highly correlated with each other, typical multiple regression analysis would produce flawed indicators of driver importance. Instead, we adopt the [relative weight analysis](https://relativeimportance.davidson.edu/Tonidandel&LeBreton(2011)_JBP_Relative%20Weights.pdf) approach which accurately partitions variance among the correlated drivers.\n\nThe Relative Importance Calculator produces the raw and normalized relative importance by driver for a specified outcome variable. The sum of the raw relative importance equals R-squared (i.e. the total proportion of variation in the outcome variable that can be explained by all the drivers) and the sum of the normalized relative importance equals one.\n\n## Prerequisite\n\nTo use the Relative Importance Calculator, you need to have pandas and NumPy installed.\n\n## Installation\n\nInstall the Relative Importance Calculator from [PyPI](https://pypi.org/):\n\n```pip install relativeImp```\n\n## Input and Output\n\nThe Relative Importance Calculator takes three mandatory input parameters and returns a pandas DataFrame:\n\n**Input Parameters:**\n\n df: pandas.core.frame.DataFrame\n Raw input data, e.g. survey responses\n\n outcomeName: str\n Name of the single outcome variable, e.g. overall satisfaction scores\n\n driverNames: list\n Names of the driver variables, e.g. satisfication drivers such as quality, ease of use etc. \n\n**Output:**\n\n pandas.core.frame.DataFrame with three columns:\n driver: names of the driver variables\n rawRelaImpt: the raw relative importance whose sum equals R-squared\n normRelaImpt: the normalized relative importance whose sum equals one \n\n## Example Code\n\n```python\nimport pandas as pd\nfrom relativeImp import relativeImp\n\ndf = pd.read_excel(\"raw_survey_responses.xlsx\")\nyName = 'Overall Satisfaction'\nxNames = ['Response Time to the Service Call',\n 'Efficiency of Handling the Service Call',\n 'Answer/Solution Provided',\n 'Knowledge of the Service Personnel',\n 'Communication Skills of the Service Personnel',\n 'Professionalism of the Service Personnel']\n\ndf_results = relativeImp(df, outcomeName = yName, driverNames = xNames)\n```\n\n## Creator\n\nCopyright © 2019 Dan Yang\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "LICENSE.txt", "maintainer": "", "maintainer_email": "", "name": "relativeImp", "package_url": "https://pypi.org/project/relativeImp/", "platform": "", "project_url": "https://pypi.org/project/relativeImp/", "project_urls": null, "release_url": "https://pypi.org/project/relativeImp/0.0.2/", "requires_dist": [ "pandas", "numpy" ], "requires_python": ">=3.5", "summary": "relativeImp is a Python package to conduct the key driver analysis and generate relative importance by driver.", "version": "0.0.2" }, "last_serial": 5689351, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "d946eba921f626314a8b047044d3440c", "sha256": "c38c5157e91118976321eb7ee9cc02702b75d831ce249b2c946e2675d0e3770f" }, "downloads": -1, "filename": "relativeImp-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d946eba921f626314a8b047044d3440c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 4193, "upload_time": "2019-08-16T19:20:15", "url": "https://files.pythonhosted.org/packages/0b/18/9f3648c81364bed6ef4dfa7f2a75fe765859ac1e30f836be7c8375e3e345/relativeImp-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "abe679e2770d08d6bf2c2eaee213a1e7", "sha256": "fd2cdaabe86b8b22520c3848d71347f6d79ed1345dba9eb276f103b3af3f80a9" }, "downloads": -1, "filename": "relativeImp-0.0.1.tar.gz", "has_sig": false, "md5_digest": "abe679e2770d08d6bf2c2eaee213a1e7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 2798, "upload_time": "2019-08-16T19:20:17", "url": "https://files.pythonhosted.org/packages/95/7a/4af6713fa6a510230f76d5af2ca81d2e61d83e5d613d8bbf5648d39e2c42/relativeImp-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "90373e2dd0cba305e44f6fba514a8f31", "sha256": "7db59c76b09178d8fa3cdb5c764b3dabb4f644c3ea9be019b24c4c71c4eed511" }, "downloads": -1, "filename": "relativeImp-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "90373e2dd0cba305e44f6fba514a8f31", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 4196, "upload_time": "2019-08-16T20:17:12", "url": "https://files.pythonhosted.org/packages/2e/a6/d02857fb2ffb19d3660e70a1ab7bff9308f914351e0b00ad8a0da3c8de63/relativeImp-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a4d64c2e6d02b07ecee6ea21cca9de9c", "sha256": "16e025546a7149eb038e3278ecf0e4364b2ea7ab57f59af7bbbbd655aff11fbc" }, "downloads": -1, "filename": "relativeImp-0.0.2.tar.gz", "has_sig": false, "md5_digest": "a4d64c2e6d02b07ecee6ea21cca9de9c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 2812, "upload_time": "2019-08-16T20:17:14", "url": "https://files.pythonhosted.org/packages/51/9b/8442550de1c1c76c295953ffb99277b7001e0f9c6574345e081c7650386d/relativeImp-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "90373e2dd0cba305e44f6fba514a8f31", "sha256": "7db59c76b09178d8fa3cdb5c764b3dabb4f644c3ea9be019b24c4c71c4eed511" }, "downloads": -1, "filename": "relativeImp-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "90373e2dd0cba305e44f6fba514a8f31", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 4196, "upload_time": "2019-08-16T20:17:12", "url": "https://files.pythonhosted.org/packages/2e/a6/d02857fb2ffb19d3660e70a1ab7bff9308f914351e0b00ad8a0da3c8de63/relativeImp-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a4d64c2e6d02b07ecee6ea21cca9de9c", "sha256": "16e025546a7149eb038e3278ecf0e4364b2ea7ab57f59af7bbbbd655aff11fbc" }, "downloads": -1, "filename": "relativeImp-0.0.2.tar.gz", "has_sig": false, "md5_digest": "a4d64c2e6d02b07ecee6ea21cca9de9c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 2812, "upload_time": "2019-08-16T20:17:14", "url": "https://files.pythonhosted.org/packages/51/9b/8442550de1c1c76c295953ffb99277b7001e0f9c6574345e081c7650386d/relativeImp-0.0.2.tar.gz" } ] }