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)
OLS with dependent variablesHi everybody, I have to run a regression with a dummy variable as response variable and a vector of…
Two stage two stage least squares method - Help neededHi, I am preparing for an Honour Thesis right now and I need to be directed on (1) Appropriateness o…
OLS with discrete dependent variablesHi everybody, I have to run a regression with a dummy variable as response variable and a vector of…
Matrix subscripting based on matrix colnamesDear All, I have quick question. I have a matrix X and I want to extract, say, 2 columns based in th…
Enter complicated math formula in StataHello. I am trying to generate a variable that is calculated by using a complicated math expression.…
Subscribe to:
Post Comments (Atom)
0 Response to Weigthed estimations with XTMG command (CCEMG and AMG)
Post a Comment