Code: Summarize
Variable | Obs Mean Std. Dev. Min Max
-------------+---------------------------------------------------------
Country | 0
countryid | 544 1 0 1 1
Mrket | 0
Marketid | 544 1.5 .5004602 1 2
latitude | 544 9.117635 2.748222 6.37194 11.86333
-------------+---------------------------------------------------------
longitude | 544 2.9095 .4751769 2.43476 3.38424
closestmar~t | 0
euclideankm | 544 88.01 28.35607 59.68 116.34
subscription | 544 42.29927 37.05158 .37 97.13
proportion | 544 .165 .025023 .14 .19
-------------+---------------------------------------------------------
scaledsubs~n | 544 6.979319 6.273235 .0518 18.4547
commodity | 0
commodityid | 544 1.5 .5004602 1 2
quarter | 544 2.5 1.119063 1 4
year | 544 2008 4.903488 2000 2016
-------------+---------------------------------------------------------
pricetype | 0
price | 544 274.9063 127.5307 108.11 510
unit | 0
currency | 0
rainfall | 544 11.77351 11.09635 .4435913 45.95602
Apologies, as I am new to Stata and I was wondering if anyone could help. I am using Panel Data and my variable price should be the following function. Price (marketid, commodityid, quarter, year, pricetype) e.g. the price should be specific for the time, quarter, commodity, price type (retail or wholesale) and market.
I have tried using the following code:
xtset price year
and I receive the error:
repeated time values within panel
r(451);
My data is organised as a column for year, and one for quarter (and one for each of the variables listed above)
This would be hugely appreciated. Thanks in advance
Variable | Obs Mean Std. Dev. Min Max
-------------+---------------------------------------------------------
Country | 0
countryid | 544 1 0 1 1
Mrket | 0
Marketid | 544 1.5 .5004602 1 2
latitude | 544 9.117635 2.748222 6.37194 11.86333
-------------+---------------------------------------------------------
longitude | 544 2.9095 .4751769 2.43476 3.38424
closestmar~t | 0
euclideankm | 544 88.01 28.35607 59.68 116.34
subscription | 544 42.29927 37.05158 .37 97.13
proportion | 544 .165 .025023 .14 .19
-------------+---------------------------------------------------------
scaledsubs~n | 544 6.979319 6.273235 .0518 18.4547
commodity | 0
commodityid | 544 1.5 .5004602 1 2
quarter | 544 2.5 1.119063 1 4
year | 544 2008 4.903488 2000 2016
-------------+---------------------------------------------------------
pricetype | 0
price | 544 274.9063 127.5307 108.11 510
unit | 0
currency | 0
rainfall | 544 11.77351 11.09635 .4435913 45.95602
Apologies, as I am new to Stata and I was wondering if anyone could help. I am using Panel Data and my variable price should be the following function. Price (marketid, commodityid, quarter, year, pricetype) e.g. the price should be specific for the time, quarter, commodity, price type (retail or wholesale) and market.
I have tried using the following code:
xtset price year
and I receive the error:
repeated time values within panel
r(451);
My data is organised as a column for year, and one for quarter (and one for each of the variables listed above)
This would be hugely appreciated. Thanks in advance
Comment