I am trying to do Program Evaluation for my data set which is "growth" (basically it is the gdp of each country).
I have already ruled out all of the countries that do not have a complete set of data for the time period 1980-2000 so I am sure that I do not have any missing data.
After importing the data into R, I followed the instructions in the paper: An R Package for the Panel Approach Method for Program Evaluation: pampe by Ainhoa Vega-Bayo
This is a screen shot of how my data looks like in RStudio.
> time.pretr<-c("1980", "1983")
> time.tr<-c("1984","1994")
> treated <-"SOUTHAFRICA"
> econ.integ<-pampe(time.pretr = time.pretr,time.tr = time.tr,treated = treated,data = growth)
Error in leaps.setup(x, y, wt = weights, nbest = nbest, nvmax = nvmax, :
y and x different lengths
What could I do to resolve this error and what does it mean when it says "y and x different lengths"?
Please note, this is my first time using R/RStudio so I am not familiar with the terms. If anyone could offer some help, it would be greatly appreciated.