⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vdp.m

📁 计量工具箱
💻 M
字号:
function z = vdp(y,sigma,A);
% PURPOSE: Balancing by means of van der Ploeg method
% ------------------------------------------------------------
% SYNTAX: z = vdp(y,sigma,A);
% ------------------------------------------------------------
% OUTPUT: z : kx1 vector of balanced variables
% ------------------------------------------------------------
% INPUT:  y     : kx1 vector of unbalanced variables (initial estimates)
%         sigma : kxk VCV of initial estimates
%         A     : kxm matrix of linear constraints
% ------------------------------------------------------------
% REFERENCE: Van der Ploeg, F.(1982)"Reliability and the adjustment 
% of sequences of large economic accounting matrices",Journal of 
% the Royal Statistical Society, series A, vol. 145, n. 2, p. 169-194.

% written by:
% Enrique M. Quilis
% Instituto Nacional de Estadistica
% Paseo de la Castellana, 183
% 28046 - Madrid (SPAIN)


disc = A' * y;    % Discrepancy

AUX = inv(A'*sigma*A);

z = y - sigma*A*AUX*disc;  % LS balanced estimation




⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -