Hello
I hope everyone is OK!
I need to estimate the degree of polycentricity of 50 urban regions. Each one has between 1 and 20 cities inside. The degree of polycentricity is obtained from the rank-size distribution based on this equation: Ln(size)=α+βLn(rank-1/2), where Ln(size) is the size of each city within the different urban regions and ln(rank-1/2) is the rank that the city occupies within each region (1, 2, 3,...20).
The literature recommends calculating β using the range-size distribution average when considering the region's 2, 3, and 4 most populous cities. From this average, we must extract its absolute value and its inverse. The result is the degree of polycentricity. I have run the equation in Stata with the following command per region:
bysort cve_sun: regress lnpob2020 lnrank2020_ if rank2020<=2, r
bysort cve_sun: regress lnpob2020 lnrank2020_ if rank2020<=3, r
bysort cve_sun: regress lnpob2020 lnrank2020_ if rank2020<=4, r
From there, I get a β for each city, but I don't know how to get the average of the β's for each region (by hand, it would take a long time because there are 50 urban regions).
I don't know if I have to use a loop, but how to do it is also unclear. I tried with:
forvalues i = 2/4 {
reg lnpob2020_sun lnrank2020 if rank2020 == `i', r
local beta = _b[lnrank2020]
local betas "`betas' `beta'"
}
I did not get the expected result. Any recommendation?
Thank you,
Diego
I hope everyone is OK!
I need to estimate the degree of polycentricity of 50 urban regions. Each one has between 1 and 20 cities inside. The degree of polycentricity is obtained from the rank-size distribution based on this equation: Ln(size)=α+βLn(rank-1/2), where Ln(size) is the size of each city within the different urban regions and ln(rank-1/2) is the rank that the city occupies within each region (1, 2, 3,...20).
The literature recommends calculating β using the range-size distribution average when considering the region's 2, 3, and 4 most populous cities. From this average, we must extract its absolute value and its inverse. The result is the degree of polycentricity. I have run the equation in Stata with the following command per region:
bysort cve_sun: regress lnpob2020 lnrank2020_ if rank2020<=2, r
bysort cve_sun: regress lnpob2020 lnrank2020_ if rank2020<=3, r
bysort cve_sun: regress lnpob2020 lnrank2020_ if rank2020<=4, r
From there, I get a β for each city, but I don't know how to get the average of the β's for each region (by hand, it would take a long time because there are 50 urban regions).
I don't know if I have to use a loop, but how to do it is also unclear. I tried with:
forvalues i = 2/4 {
reg lnpob2020_sun lnrank2020 if rank2020 == `i', r
local beta = _b[lnrank2020]
local betas "`betas' `beta'"
}
I did not get the expected result. Any recommendation?
Thank you,
Diego
Comment