DOI QR코드

DOI QR Code

An educational tool for regression models with dummy variables using Excel VBA

엑셀 VBA을 이용한 가변수 회귀모형 교육도구 개발

  • Received : 2013.04.23
  • Accepted : 2013.05.20
  • Published : 2013.05.31

Abstract

We often need to include categorial variables as explanatory variables in regression models. The categorial variables in regression models can be quantified through dummy variables. In this study, we provide an education tool using Excel VBA for displaying regression lines along with test results for regression models with a continuous explanatory variable and one or two categorical explanatory variables. The regression lines with test results are provided step by step for the model(s) with interaction(s), the model(s) without interaction(s) but with dummy variables, and the model without dummy variable(s). With this tool, we can easily understand the meaning of dummy variables and interaction effect through graphics and further decide which model is more suited to the data on hand.

회귀모형에서 범주형 변수를 독립변수로 포함시켜야 할 경우가 발생한다. 회귀모형의 범주형 변수는 가변수를 통해 수량화된다. 이 연구에서는 하나의 양적 독립변수와 하나 혹은 두 개의 범주형 독립변수를 가지는 회귀모형에 대해 가설검정 결과와 함께 회귀직선을 보여주는 교육용 도구를 엑셀 VBA (Visual Basic for application)를 통해서 구현한다. 가설검정 결과와 회귀직선은 교호작용이 포함된 모형, 교호작용이 없는 모형 및 가변수가 없는 모형에 대해 단계별로 제공된다. 이 교육도구를 통해 가변수와 교호작용의 의미를 더 쉽게 이해할 수 있으며, 나아가 어떤 모형이 주어진 자료에 가장 적합한지 그림을 통해 판단할 수 있게 된다.

Keywords

References

  1. Choi, H. S. and Ha, J. (2011). Development of process-oriented education tool for Statistics with Excel Macro. Journal of the Korean Data & Information Science Society, 22, 643-650.
  2. Choi, H. S. and Ha, J. (2012). Development of Bayes' rule education tool with Excel Macro. Journal of the Korean Data & Information Science Society, 23, 905-912. https://doi.org/10.7465/jkdi.2012.23.5.905
  3. Choi, H. S. and Kim, T. Y. (2010). A study on sampling using the function of excel. Journal of the Korean Data & Information Science Society, 21, 481-491.
  4. Jacobson, R. (2002). Microsoft excel 2002 visual basic for applications step by step, Microsoft Press, Redmond, WA.
  5. Kim D. (2012). On the development of DES round key generator based on Excel Macro. Journal of the Korean Data & Information Science Society, 23, 1203-1212. https://doi.org/10.7465/jkdi.2012.23.6.1203
  6. Lee, J. Y. (2008). An example of participatory statistics class using Excel Macro. The Korean Journal of Applied Statistics, 21, 355-359. https://doi.org/10.5351/KJAS.2008.21.2.355
  7. Walkenbach, J. (2004). Excel 2003 power programming with VBA, Wiley Publishing, New York.

Cited by

  1. A polychotomous regression model with tensor product splines and direct sums vol.25, pp.1, 2014, https://doi.org/10.7465/jkdi.2014.25.1.19
  2. An educational tool for binary logistic regression model using Excel VBA vol.25, pp.2, 2014, https://doi.org/10.7465/jkdi.2014.25.2.403
  3. Design of Efficient Data Search Function using the Excel VBA DAO vol.18, pp.1, 2014, https://doi.org/10.6109/jkiice.2014.18.1.217