SAR Probit does not work

I want to analyze hot spot areas with SAR Probit model. However, when I run this code, it does not work. This is the code.
vcrimehh=data15(:, 58);
n=length(vcrimehh);
pop=data15(:, 41);
foreign=data15(:, 36);
old=data15(:,23);
ac=data15(:, 20);
ad=data15(:, 21);
own=data15(:, 24);
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);
ind=data15(:,31);
emp=data15(:, 32);
emp_r=data15(:, 34);
ad=data15(:, 21);
high=data15(:, 19);
own=data15(:, 24);
train=data15(:,9);
ut=data15(:, 10);
p_density=data15(:, 14);
f_rate=data15(:,45);
x=[ones(n,1) pop foreign female college mig own ind_r road];
vnames=strvcat('vcrimehh', 'const','pop', 'foreign','female', 'college','mig','own','ind_r','road');
w=swm2015;w=normw(w);
ndraw=1100; nomit=100;
prior.rval=4; prior.rmin=0; prior.rmax=1;
res1=sarp_g(vcrimehh,x,w,ndraw,nomit, prior);prt(res1,vnames);
And this result keeps appearing. The same problem shows up even when I use only one independent variable.
Variable Coefficient Std Deviation p-level
const NaN NaN 0.959000
pop NaN NaN 1.000000
foreign NaN NaN 0.997000
female NaN NaN 0.985000
college NaN NaN 0.964000
mig NaN NaN 0.995000
own NaN NaN 0.970000
ind_r NaN NaN 1.000000
road NaN NaN 1.000000
rho 0.973210 0.076823 0.000000
When I use SEM probit model, it works very well. I want to know why SAR probit does not work and how to solve this problem.
Thank you.

Answers (0)

Categories

Products

Release

R2020a

Asked:

on 29 Mar 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!