Ben,
How difficult would it be to adapt an mle2 object for clustered data using a sandwich estimator?
In rstpm2, I currently replace the vcov slot with a sandwich estimator, but this feels like a hack. It certainly gives the wrong estimate for confint.
Would you be able to give some guidance for where I should start with confint (and other functions that depend on the profile likelihood), please?
Sincerely, Mark.
Ben,
How difficult would it be to adapt an
mle2object for clustered data using a sandwich estimator?In
rstpm2, I currently replace thevcovslot with a sandwich estimator, but this feels like a hack. It certainly gives the wrong estimate forconfint.Would you be able to give some guidance for where I should start with
confint(and other functions that depend on the profile likelihood), please?Sincerely, Mark.