sar probit doesn`t work
13 views (last 30 days)
Show older comments
I want to use sarprobit model but when I excute this code it doesn`t work. This is the code.
serhh=data15(:, 57);
n=length(serhh);
pop=data15(:, 41);
foreign=data15(:, 36);
old=data15(:,23);
female=data15(:, 22);
divorce=data15(:, 12);
college=data15(:, 18);
work=data15(:, 17);
mig=data15(:, 25);
house=data15(:, 30);
atax=data15(:, 29);
ind_r=data15(:, 33);
road=data15(:, 8);
x=[ones(n,1) pop foreign old female divorce college work mig house atax ind_r road];
vnames=strvcat('serhh', 'const','pop', 'foreign', 'old', 'female', 'divorce', 'college', 'work', 'mig', 'house', 'atax', 'ind_r', 'road');
w=swm2015;
W=normw(w);
ndraw=1100; nomit=100;
res1=sarp_g(serhh,x,W,ndraw,nomit,prior);
prt(res1,vnames);
When I use semprobit model, it shows the proper result. This result comes out when I use sarprobit model. The same result show up when I control only one independent variable.
I want to know why sarprobit doesn`t work. Thank you.
Bayesian spatial autoregressive Probit model
Dependent Variable = serhh
Nobs, Nvars = 145, 13
# 0, 1 y-values = 105, 40
ndraws,nomit = 1100, 100
time in secs = 8.7270
nsteps for TMVN = 1
Pace and Barry, 1999 MC lndet approximation used
order for MC appr = 50
iter for MC appr = 30
min and max rho = 0.0000, 1.0000
***************************************************************
***************************************************************
Variable Coefficient Std Deviation p-level
const NaN NaN 1.000000
pop NaN NaN 1.000000
foreign NaN NaN 1.000000
old NaN NaN 1.000000
female NaN NaN 1.000000
divorce NaN NaN 1.000000
college NaN NaN 1.000000
work NaN NaN 1.000000
mig NaN NaN 1.000000
house NaN NaN 1.000000
atax NaN NaN 1.000000
ind_r NaN NaN 1.000000
road NaN NaN 1.000000
rho 0.987000 0.000000 0.000000
0 Comments
Answers (0)
See Also
Categories
Find more on Vector Autoregression Models in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!