Commit f4df117
Guard FOCE vcov against weight_prior_var <= 0
When the prior is flat (weight_prior=0) the scaled omega is undefined
and the FOCE Hessian H = (Omega/w)^-1 + F'Sigma^-1*F is not meaningful.
Return vcov = NULL in that case so the caller falls back to omega$full
cleanly. CWRES itself is unaffected (uses unscaled omega).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7b8a385 commit f4df117
1 file changed
Lines changed: 13 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | | - | |
| 157 | + | |
| 158 | + | |
159 | 159 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
167 | 171 | | |
168 | 172 | | |
169 | 173 | | |
| |||
0 commit comments