I have a simple issue after running a regression with panel data using plm
with a dataset that resembles the one below:
dataset <- data.frame(id = rep(c(1,2,3,4,5), 2),
time = rep(c(0,1), each = 5),
group = rep(c(0,1,0,0,1), 2),
Y = runif(10,0,1))
model <-plm(Y ~ time*group, method = 'fd', effect = 'twoways', data = dataset,
index = c('id', 'time'))
summary(model)
stargazer(model)
As you can see, both the model summary
and the table displayed by stargazer
would say that my number of observations is 10. However, is it not more correct to say that N = 5
, since I have taken away the time element after with the first differences?