Hi everyone,
I am estimating a regression with panel data for the model WfpPcLog ~ GdpPcLog + Gdp2PcLog + Gdp3PcLog + HarvestedAreaPc + LivestockPc (water footprint as dependent variable and linear, quaratic and cubic GDP as independent variables plus others two covariates). I need to estimate the coefficients of the model with CCEMG and AMG estimators, but I'd like to weight the final coefficients for population, so that if a country has got, for example, 50% of the world population (I can use invariant weights in time), its coefficient is counted for 0.50, if a country has got the 5% the coefficient counts for 0.05 and so on.
I know that the XTMGcommand in stata, for both CCEMG and AMG, at first estimates N group-specific ordinary least-squares (OLS) regressions for each country and secondly it caluclates the final coefficient of the model as the average of the estimated coefficients across groups.
I was wondering if I just can use a specific vector of weights to calculate a weighted average of these estimated coefficients across groups, where more population the country has, more important will be his coefficient in the average. And, if it is possible, I don't understand how I could calculate the new standard error to test the significance of the new weighted coefficient found.
Just ask me if you need more information and thanks all
Related Posts with Weigthed estimations with XTMG command (CCEMG and AMG)
How to view the SE of autocorrelation in xtregarI'm estimating a model using xtregar, fe. The results include an estimate of rho (rho_ar), but I can…
Stata Command "myqreg2" exists?I found a do file online where a very renowned economist used "myqreg2" command while estimating qua…
Problem with displaced coefficients using -coefplot-Dear Statalisters, I want to plot regression coefficients using the Stata journal command -coefplot-…
Danish MP's political responsiveness - help with statistical significanceHello everyone Me and a fellow student are currently working on an assignment investigating politic…
sample size for test accuracyIs there a preferred method for estimating the required sample size for testing the accuracy of a go…
Subscribe to:
Post Comments (Atom)
0 Response to Weigthed estimations with XTMG command (CCEMG and AMG)
Post a Comment