Skip to content
Prev 20207 / 20628 Next

Standard errors of variances; negative variance

Just sayin'
Part of the "negative variance" issue in this particular case could be due to using change scores as the dependent variable. Using the "pre" value as a covariate adjuster of the post values should go a long way toward alleviating this issue. See Frank Harrell's website/blog for better reasoning than I am able to do.
Steve Denham
On Tuesday, June 20, 2023 at 08:59:43 PM EDT, Ben Bolker <bbolker at gmail.com> wrote:
? A few *short* responses below.
On 2023-06-20 8:08 p.m., Will Hopkins wrote:
? not sure what the evidence is that merDeriv's results are untrustworthy?

? and with Bayesian packages (but I'd be specifying weakly informative 
priors that in the limit have no effect on the posterior, which might 
not work in some packages). Negative variance seems to be off the table, 
however. Ben, James and Timothee have indicated scenarios where negative 
variance made some sense.
Interestingly, the default in SAS is positive-only variance, and if you 
ask f
? I would argue that an equally good (possibly even better?) way to 
test the maximum plausible size of the effect is computing an upper 
*likelihood profile* confidence limit.? This should not require allowing 
a negative estimate of the variance to get good coverage ... ??? (I can 
certainly see why a Wald-based confidence interval would fail if you 
didn't allow negative variances.? How does SAS compute these intervals? 
Are they assumed to be symmetric on the variance scale or on the 
log-variance scale?)
? This argument could presumably be turned around to say that we 
shouldn't rely on a method that only considers the marginal variance 
structure (i.e., the context in which negative variances make the most 
sense), but that we want to consider the 'true' structure of the 
variance (in which case we should probably be considering 
compound-symmetric variance structures ...)
wi
? An alternative approach to this would be to model the 
heteroscedasticity directly, which can be done with (e.g.) lme and 
glmmTMB, although not at present in lme4 - no need to make up latent 
variables with negative variances ...

? cheers
? ? Ben Bolker
_______________________________________________
R-sig-mixed-models at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models