Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unit -invariant variable #40

Open
aroopsind opened this issue Mar 24, 2020 · 6 comments
Open

unit -invariant variable #40

aroopsind opened this issue Mar 24, 2020 · 6 comments

Comments

@aroopsind
Copy link

Hi,

I am building out a model where one of my covariates, elevation, is fixed and does not vary with time as the outcome and some other covariates (e.g. pop?).

I created a long structure data format and for the column with the elevation value it repeats for each year there is an observation. I, however, get the following error:
"Error in gsynth.default(formula = NULL, data = data, Y = Yname, D = Dname, : Variable "elevation" is unit-invariant. Try to remove it. Timing stopped at: 10.85 0.32 13.47"

Any guidance on the best way to include these time-invariate covariates would be greatly appreciated.

Anand

@xuyiqing
Copy link
Owner

xuyiqing commented Mar 24, 2020 via email

@aroopsind
Copy link
Author

Thanks for that clarification Yiping. I went back through the gsynth publication and supplemental - is there an example of the use of the additive and interactive fixed effects model to control for these time-invariant covariates and then the application of gsynth.

In one analysis I am exploring with gsynth, as a first step I used propensity score matching to identify the pool of control units based on time-invariant covariates. Curious how different these would be based on the IFE. Thanks again for taking the time to respond.

Cheers
Anand

@xuyiqing
Copy link
Owner

xuyiqing commented Apr 5, 2020 via email

@jtorcasso
Copy link

Hello, I was wondering if the package allowed for including observed time-invariant covariates, as discussed in Remark 3 of the paper.

@xuyiqing
Copy link
Owner

xuyiqing commented Dec 16, 2021 via email

@jtorcasso
Copy link

Thanks! Will check it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants