摘要
多元线性回归是计量分析中最常用的方法之一,在经济学、金融学和管理学中运用广泛。线性回归方法依赖于矩阵和向量的运算,因此以矩阵运算为内核的Matlab是理想的编程平台。本文以开发多元线性回归函数作为例子,着重分析Matlab自定义函数的设计理念,同时突出varargin、nargin等特殊函数的代码编写。通过交叉运用线性代数、概率统计等数学工具,本文为计量研究人员提供了新的编程视角。
Multiple regression is widely used in economics,finance and management.This paper will show readers how powerful matlab is to solve econometric problems.We focus on some matlab's important functions,such as vararin and nargin.These built-in functions can solve many problems in an efficient way.
出处
《软件工程师》
2015年第11期3-5,共3页
Software Engineer