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
Related Posts with FE- 0/1 Problem
Creating a graph with shared areas that cover positive and negative numbers in the y-axisHello, I created a graph that includes markers for each one of the data points and shaded areas for…
Extended Cox model (Cox model with time-varying covariates)Dear STATALIST I would like to investigate the association of baseline treatment A (binary variable…
How to run conditional indirect difference test with categorical moderator in Stata 14.2Hello everyone! Can someone please help me to run the conditional indirect difference test with cat…
Looping through Import Delimited command using localsHi Statalist Users, I read a text delimited file using the standard command: > import delimited…
Generate new variable by levelsof format %td datevar …
Subscribe to:
Post Comments (Atom)
0 Response to FE- 0/1 Problem
Post a Comment