Hi there!

I have a panel dataset. I’m doing a Fixed Effects Regression. I have this central variable and if it goes from 0 to 1 I measure the difference in my dependent variable.
My problem is that the variable should stay at 1 so that no more measures are made but at this moment it goes back to 0 in later years.
How can I change it so that if it was 1 once it stays 1 for the rest of the years?

Thanks for the help