資源簡介
在建立線性回歸模型時,如果樣本變量是非正態分布的,需要采用適當的變換方法進行處理,使之服從或接近于正態分布。
代碼片段和文件信息
function?v=boxcox(xlamdaxdot)
%Syntax:?v=boxcox(xlamdaxdot)
%______________________________
%
%?Makes?the?Box-Cox?transformation?of?a?data?set?x.
%
%?v?is?the?transformed?data?vector.
%?x?is?the?data?set.
%?lamda?is?the?parameter?of?the?transformation.
%?xdot?is?the?geometric?mean?of?the?data.
%
%?Alexandros?Leontitsis
%?Institute?of?Mathematics?and?Statistics
%?University?of?Kent?at?Canterbury
%?Canterbury
%?Kent?CT2?7NF
%?U.K.
%?University?e-mail:?al10@ukc.ac.uk?(until?December?2001)
%?Lifetime?e-mail:?leoaleq@yahoo.com
%?Homepage:?http://www.geocities.com/CapeCanaveral/Lab/1421
%
%?June?15?2001.
if?nargin<1?|?isempty(x)==1
???error(‘You?shoud?provide?a?data?set
- 上一篇:rvm-matlab工具箱
- 下一篇:基于matlab的循環譜算法
評論
共有 條評論