Hi every body,
I am doing a mixed effect model on an imputed data set " mi estimate: mixe cot_at18 group cost_baseline || site: || cid:group, res(ind, by(group)) it works but in my program to do bootstrap it doesnt work.
cap program drop test
program define test, rclass
mi estimate: mixe cot_at18 group cost_baseline || site: || cid:group, res(ind, by(group))
martix list e(b_mi)
matrix b =e(b_mi)
sclar icost= b(1,1)
return scalar icost=icost
end
bootstrap doff_cost=icost, rep(2) seed(12345) cluster(_mi_m) saving(test.dta, replace): test
could you please help me.
Thank you so much
I am doing a mixed effect model on an imputed data set " mi estimate: mixe cot_at18 group cost_baseline || site: || cid:group, res(ind, by(group)) it works but in my program to do bootstrap it doesnt work.
cap program drop test
program define test, rclass
mi estimate: mixe cot_at18 group cost_baseline || site: || cid:group, res(ind, by(group))
martix list e(b_mi)
matrix b =e(b_mi)
sclar icost= b(1,1)
return scalar icost=icost
end
bootstrap doff_cost=icost, rep(2) seed(12345) cluster(_mi_m) saving(test.dta, replace): test
could you please help me.
Thank you so much
Comment