# Problem in estimating the Preferred-Habitat term structure model

**URL:** https://forum.dynare.org/t/problem-in-estimating-the-preferred-habitat-term-structure-model/22451
**Category:** Estimation
**Created:** [16 May 2023 06:48 UTC](https://forum.dynare.org/t/problem-in-estimating-the-preferred-habitat-term-structure-model/22451 "2023-05-16T06:48:14Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)
#### Post date: [16 May 2023 14:48 UTC](https://forum.dynare.org/t/problem-in-estimating-the-preferred-habitat-term-structure-model/22451/6 "2023-05-16T14:48:07Z")

</div>

You cannot encode missing values with a minus sign. Use  
[term\_struc\_data1.xlsx](https://forum.dynare.org/uploads/short-url/gmVEl4HjjBLCM8XGiorO4UYxD9K.xlsx) (24.4 KB)  
Then see

> [@DSGE modelling: The forecast error variance in the multivariate Kalman filter became singular](https://forum.dynare.org/t/dsge-modelling-the-forecast-error-variance-in-the-multivariate-kalman-filter-became-singular/21749/4):
>
> You have standard stochastic singularity. Try dropping one variable at a time. Search the forum for details.

---

_[View the full topic](https://forum.dynare.org/t/problem-in-estimating-the-preferred-habitat-term-structure-model/22451)._
