I have a distribution of scalars (called 'beta') which are the results of bootstrapping. The code below computes the quantiles at 2.5 and 97.5% respectively. My question is: what's the easiest way to ask RATS to print the corresponding fractiles such that beta=1?
Code: Select all
dec rect[vect] fract(1,1)
dec vect onevect(bootdraws)
dec integer k
do i=1,1
do j=1,1
ewise onevect(k)=beta(k)(i,j)
compute fract(i,j)=%fractiles(onevect,||.025,.975||)
end do j
end do i