本人在用matlab做空间杜宾模型,用的是jplv7工具箱做的,但是结果却提示输出参数过多,请问我应该怎么做,代码如下!(还有matlab只需要把面板数据设置成要求的格式就行么,没有其他的要求了,怎么能保证空间权重矩阵和自变量矩阵相乘的时候不会出现问题,希望大神们帮我解答一下,谢谢)
results = sdm(y,X,W,info)
PURPOSE: computes spatial durbin model estimates
(1-rho*W)y = a + X*B1 + W*X*B2 + e, using sparse algorithms
---------------------------------------------------
USAGE: results = sdm(y,x,W,info)
where: y = dependent variable vector
x = independent variables matrix
W = contiguity matrix (standardized)
info = an (optional) structure variable with input options:
info.rmin = (optional) minimum value of rho to use in search
info.rmax = (optional) maximum value of rho to use in search
info.convg = (optional) convergence criterion (default = 1e-8)
info.maxit = (optional) maximum # of iterations (default = 500)
info.lflag = 0 for full lndet computation (default = 1, fastest)
= 1 for MC lndet approximation (fast for very large problems)
= 2 for Spline lndet approximation (medium speed)
info.order = order to use with info.lflag = 1 option (default = 50)
info.iter = iterations to use with info.lflag = 1 option (default = 30)
info.lndet = a matrix returned by sar, sar_g, sarp_g, etc.
containing log-determinant information to save time
错误使用 info
输出参数太多。