| |
| | [No title] (Site not responding. Last check: 2007-10-29) |
 | | rand) statement creates a vector whose % elements are the row numbers j from the vector pus for which pus(j) > % rand. |
 | | It then finds the minimum index from among % these, which in our example is 2, and sets that as the state at time 1 ib(1,1)=min(find(pus > rand)) ; % get initial random index. |
 | | The % relevant conditional probability vector at time i, is the row from % p which corresponds to the state at time i-1 for i=2:(2*sampsiz) ; ib(i,1)=min(find(ps(ib(i-1,1),:)' > rand)) ; end ; x=ib(sampsiz+1:2*sampsiz,1) ; % extract the last half of the sample |
| dge.repec.org /codes/marimon-scott/Burnside96/dspace.m (149 words) |
|