Funky confidence intervals

Attachment | Size |
---|---|
CIcheck.R | 2.95 KB |
The documentation seems to agree with this at one point. "In all cases, a two-sided hypothesis test is assumed. Therefore, the upper bound will exclude 2.5% (for interval=0.95) even though only one bound is requested. " Yet later, it states "Thus, a requested confidence interval for a parameter will first determine the corresponding quantile from the chi-squared distribution with one degree of freedom (a value of 3.841459 when a 95 percent confidence interval is requested)." The correct critical value of chi square for a two-tailed, 95% confidence interval is 5.024.
If I dummy up some data to test this (see attached), I get default 90% two-tailed confidence intervals. Here is the result of fitting a model with three parameters--a mean, a variance, and a covariance--to simulated "twin" data with one zygosity. I fixed a parameter at the lower (or upper) confidence interval given by the general model and computed the LR chi square and its p value.
parm CI chisq pValue
1 mean lower 3.854471 0.04961358
2 mean upper 3.854471 0.04961358
3 V lower 3.854562 0.04961087
4 V upper 3.867740 0.04922277
5 C lower 3.854694 0.04960697
6 C upper 3.867859 0.04921927
This from OpenMx 2.0.1-4157 on a Mac. Version 2.2.2 in Linux gave similar results.
Quote
Neale, M. C. & Miller, M. B. (1997). The Use of Likelihood-Based Confidence Intervals in Genetic Models Behavior Genetics, 27, 113-120.
Empirically, the 95% CI is often close to [Estimate +/- 1.95*SE], but feel free to check with a simulation.
Log in or register to post comments
In reply to Quote by mhunter
it's part of our test suite
Log in or register to post comments
In reply to it's part of our test suite by jpritikin
Thanks, All My mistake--I
My mistake--I should have realized that a chi square statistic is non directional.
Greg
Log in or register to post comments