You are on page 1of 1

macro

bootstrap x y b
mconstant meanboot sdboot b n i
mcolumn x y hasil
let n=count(x)
do i=1:b
sample n x y;
replace.
let hasil(i)=mean(y)
print y hasil
enddo
let meanboot=mean(hasil)
let sdboot=stdev(hasil)
print meanboot sdboot
endmacro.

You might also like