In the code below I am computing some different betas (say beta1 and beta2) from bootstrapped-VAR residuals. How can I obtain quantiles for beta1 and beta2?
Code: Select all
@VARBootSetup(model=varmodel) bootvar
*
compute rstart=%regstart()
compute rend =%regend()
*
compute bootdraws=2000
compute nvar =3
compute nsteps=8
*
dec vect[rect] beta1(bootdraws)
dec vect[rect] beta2(bootdraws)
*
infobox(action=define,progress,lower=1,upper=bootdraws) $
"Bootstrap Simulations"
do draw=1,bootdraws
@VARBootDraw(model=varmodel,resids=resids) rstart rend
*
* Estimate the model with resampled data
*
estimate(noprint,noftests)
....instructions.....
compute beta1 = [....instructions.....]
compute beta2 = [....instructions.....]
end do draw
infobox(action=remove)
Code: Select all
dec vect[rect] sims(bootdraws)
….
compute sims(draw) = beta1(draw)
….
compute fract=%fractiles(sims,||.25,.75||)
Does anybody know how to make them match?Can't Find Match for %FRACTILES(VECTOR(VECTOR),RECTANGULAR). Closest Match is %FRACTILES(MATRIX(REAL),VECTOR)
## SX27. Illegal Combination of Data Types for Operation
>>>>s(sims,||.25,.75||)<<<<
Thank you,
C