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

lag much bigger than T in the pgmm example #55

Open
palmierieugenio opened this issue May 3, 2024 · 0 comments
Open

lag much bigger than T in the pgmm example #55

palmierieugenio opened this issue May 3, 2024 · 0 comments

Comments

@palmierieugenio
Copy link

palmierieugenio commented May 3, 2024

If I run this code there are 11 times in DemocracyIncome:

data("DemocracyIncome", package = "pder")
length(unique(DemocracyIncome$year))

[1] 11

and 7 in DemocracyIncome25:

data("DemocracyIncome25", package = "pder")
length(unique(DemocracyIncome25$year))
[1] 7

I don't uderstand what does lag(democracy, 2:99) means in the examples of pgmm, how it is possible to have a model with 98 lag, when there are just 7-11 times? Where does the 2:99 comes from?

Some examples:

diff25 <- pgmm(democracỹ lag(democracy) + lag(income) |
lag(democracy, 2:99) + lag(income, 2:99),
DemocracyIncome25, model = "twosteps")
diff25coll <- pgmm(democracỹ lag(democracy) + lag(income) |
lag(democracy, 2:99)+ lag(income, 2:99),
DemocracyIncome, index=c("country", "year"),
model="twosteps", effect="twoways", subset = sample == 1,
collapse = TRUE)
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

1 participant