You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: sarp_test.m
    path of file: ./repos/malini/Codes/FC_EC_calculation code/DynamicFC/jplv7/spatial/sar_models
    
    the code of the file until where you have to start completion: % PURPOSE: An example of using sarp_g() Gibbs sampling
%          spatial autoregressive probit model
%          (on a small data set)                  
%---------------------------------------------------
% USAGE: 
    
function homoscedastic prior
% to maximum likelihood estimates
ndraw = 600;
nomit = 100;

prior2.nsteps = 1;
result2 = sarp_g(z,x,W,ndraw,nomit,prior2);
prt(result2);


total_obs1 = mean((result2.total_obs(:,1)));

total1 = mean(total_obs1)

tt=1:n;
plot(tt,total_obs1,tt,ones(1,n)*total1,'*');
legend