plm empty model error (data is linked)

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

plm empty model error (data is linked)


I am trying to estimate a two-way model with both individual and time fixed
effects. I am using plm with "twoways" specification.

plm(as.integer(yvar) ~ xvar, index = c("id", "time"), model="within",
data=dataset, effect = "twoways")

But I get keep getting the following message and I don't know what to do
about it, because I don't think anything is wrong with my indices (but
please correct me if I'm wrong on this!). : Error in, data,
model, effect, random.method, random.models,  :
  empty model

Here's the data:

Thank you so much in advance for your help.

        [[alternative HTML version deleted]]

[hidden email] mailing list -- To UNSUBSCRIBE and more, see
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.