I'm watching a video on YouTube about linear regression, one line of code is like this (function pgmm
of package plm
):
model1 = pgmm(democracy~lag(democracy)+lag(income)|lag(democracy, 2:99), DemocracyIncome25, index=c("country", "year"), model="twosteps", effect="twoways")
Just want to know what is the meaning of |
here, and what does this operation really do.