简体   繁体   English

计算自变量在解释线性回归中因变量的方差中的重要性

[英]Calculating importance of independent variable in explaining variance of dependent variable in linear regression

I am working on a Media Mix Modeling (MMM) project where I have to build linear model for predicting traffic factoring in various spends as input variables. 我正在从事媒体混合建模(MMM)项目,在该项目中,我必须构建线性模型来预测各种支出中的流量因数作为输入变量。 I have got the linear model equation which is: 我得到的线性模型方程为:

Traffic = 1918 + 0.08*TV_Spend + 0.01*Print_Spend + 0.05*Display_spend

I want to calculate two things which I don't know how to do: 我想计算两件事,我不知道该怎么做:

  1. How much each variable is contributing in explaining variance of traffic? 每个变量在解释流量变化方面有多大作用?
  2. What percentage of total traffic is due to each independent variable? 每个自变量会导致总流量的百分之多少?

I think this question is already been answered several times at several places (a duplicate?); 我认为这个问题已经在多个地方得到了多次回答(重复吗?);

For example see: 例如,请参见:

https://stats.stackexchange.com/questions/79399/calculate-variance-explained-by-each-predictor-in-multiple-regression-using-r https://stats.stackexchange.com/questions/79399/calculate-variance-explained-by-each-predictor-in-multiple-regression-using-r

You also may want to compute the standardized regression coefs (first standardize the variables and next rerun the regression analysis) to find out which independent variable has the largest effect on the dependent variable (if significant, I would like to add). 您可能还需要计算标准化回归系数(首先标准化变量,然后重新运行回归分析),以找出哪个自变量对因变量的影响最大(如果重要,我想补充一下)。 I think the interpretation of standardized regression weights is more intuitively than considering the explained variance. 我认为标准化回归权重的解释比考虑解释的方差更直观。

Cheers, Peter 干杯,彼得

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 线性回归 model 与 R 中的虚拟(因)变量和分类(独立)变量 - Linear Regression model with dummy (dependent) variable and categorical (independent) variable in R 每个独立变量的线性回归循环单独与依赖 - Linear Regression loop for each independent variable individually against dependent 因变量与多个自变量之间的线性回归 - Linear regression between dependent variable with multiple independent variables 计算线性回归残差与NAs和R中的自变量之间的相关性 - Calculating correlation between residuals of linear regression with NAs and independent variable in R 具有二进制自变量的线性回归 - Linear regression with binary independent variable 如何在R中建立具有一个自变量和三个因变量的线性回归模型? - How to build a linear regression model with one independent variable and three dependent variables in R? 自变量加 1 个标准差的线性回归 - Linear regression with independent variable plus 1 Standard Deviation 因子和自变量乘积的线性回归 - Linear regression with product of factor and independent variable 以字符为因变量的多元线性回归 - Multiple Linear Regression with character as dependent variable 由线性回归中的每个变量解释的结果方差比例 - Proportion of variance of outcome explained by each variable in a linear regression
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM