I am running fifteen ppml regressions using a for loop (the code below):
(d is the list of my dependent variable.)
ppml is from gravity package.
for (i in 1:15) { 
   fit <- ppml(
    dependent_variable = d[i],
    distance = "y",
    additional_regressors = c("x1", "x2" , "x3"),
    robust = FALSE,
    data = mydata
  )
   print(d[i])
   print(fit$coefficients[1:7])
   #print(summary(fit))
}
The output of ppml is strange as it is not just one class:
> class(fit)
[1] "glm"  "lm"   "ppml"
I want to create 15 data-frames and save each of the results in one data-frame.
Any suggestions?
