Hi everyone,
I am getting an error message when trying to bootstrap a mixed-effects model with unstructured residuals. Anyone knows why this could be the case?
I get this error message with bootstrap:
I am using Stata version 17.
Thank you,
Baptiste
I am getting an error message when trying to bootstrap a mixed-effects model with unstructured residuals. Anyone knows why this could be the case?
Code:
*Dummy repeated-measures dataset
clear
set obs 60
gen id=ceil(_n/3)
bysort id: gen time=_n
gen x=rnormal()
*Mixed model:
mixed x || id:, res(unstructured, t(time))
Code:
. bootstrap _b[_cons], reps(50) cluster(id) : mixed x || id:, res(unstructured, t(time)) (running mixed on estimation sample) Bootstrap replications (50) ----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 50 insufficient observations to compute bootstrap standard errors no results will be saved
Thank you,
Baptiste

Comment