Re: [R] About calculation of the gravity model in R and STATA software

2016-03-19 Thread peter dalgaard
On 16 Mar 2016, at 14:10 , S Ellison wrote: >> As you can see, model coefficients (second column in the results table) are >> the >> same at least until the 4th mark (!) However, other results (columns in the >> table of results, since the third) is not the same. >> Could you explain difference

Re: [R] About calculation of the gravity model in R and STATA software

2016-03-19 Thread S Ellison
> As you can see, model coefficients (second column in the results table) are > the > same at least until the 4th mark (!) However, other results (columns in the > table of results, since the third) is not the same. > Could you explain differences in the results? R and stata are clearly doing dif

Re: [R] About calculation of the gravity model in R and STATA software

2016-03-15 Thread Jeff Newmiller
I am not the person to answer your question, but have some suggestions: Make your examples reproducible so others can confirm your results and explore other issues you may not have seen. [1] [2] Post your question on the R-sig-mixed mailing list, where mixed models experts hang out, instead of

[R] About calculation of the gravity model in R and STATA software

2016-03-15 Thread Сергей С .
Dear colleagues! We spent calculation of the gravity model in R and STATA software. For calculations we used the standard package glmm in R (with parameter family = quasipoisson) and ppml in STATA. Call the calculation procedure in R: summary(glmm<-glm(formula=exports ~ ln_GDPimporter + ln_GDPex