vdp.m
来自「计量工具箱」· M 代码 · 共 32 行
M
32 行
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 + =
减小字号Ctrl + -
显示快捷键?