library(plm)
dat <- read.csv("dat.csv")
z1 <- pgmm(
nz ~ bs | pc ,
dat,
# subset,
# na.action,
effect = c("twoways", "individual"),
model = c("onestep", "twosteps"),
collapse = FALSE,
lost.ts = NULL,
transformation = c("d", "ld"),
fsm = NULL,
index = NULL,
)
Error in cbind(yX1[[i]], V1) :
number of rows of matrices must match (see arg 2)
I am getting the above error while running pgmm
from package plm
on my data, I will appreciate any help in resolving this glitch.
The link to my data, is as follows: https://drive.google.com/file/d/19h7TKxMymnZJ4LPJUZAxgnfRrcaiU4h5/view?usp=sharing