Relative Content

Tag Archive for statapanel

Gaps between investment types. Detecting patterns

I want to count gaps between investment types in my panel data. For example. I know when firm invested positively, negatively or was inactive. What I would like to do is to sum up number of years between negative investment and positive, and potentially another count would be between negative or inactive and positive. In other words, I want to count how many negative investments occurred prior to this positive investment where the counter resets each time a positive investment occurs, similarly with inactivity and negative in the second calculation. In all cases ignoring missing observations. Here’s an example of how I would like my table to look like:

Fixed-effects interval-data regression model

xtintreg fits a random-effects regression model in which the dependent variable may be measured as point data, interval data, left-censored data, or right-censored data. Is there any command or way to fits the same type of model but with fixed-effects?