I wanted to confirm my understanding if I get the same results from the following two commands: (these are just hypothetical example)
Command 1: xtset log_quantity log_prices log_GDP, fe (panel estimation of log quantities on log prices and log GDP)
Command 2: reg log_quantity log_prices log_GDP i.country i.year (estimation of log quantities on log prices and log GDP, but without declaring dataset as panel, but including i.year i.country)
If I get the same results from these two commands, then what is the way to get elasticities for all the different years and not just one value at the mean, i.e. the coefficient on 'log_price' is the elasticity but I want to see the elasticity for all the years in the dataset?
Related Posts with does "xtset" and "i.year", "i.country" are the same things?
IV regressions - modifying datesHi, I am working on a panel data set with 20 countries and quarterly data. The dependent variable i…
Keep multiple observations in a variableDear Statalist I have a dataset that include 179 countries. However, i only want to keep 51 of them…
Twoway bar and line with 2 y-axes and labelsHello I am having some data from IMF for a panel data for countries. Countries are classified by inc…
How to predict survival curve or risk beyond study time after Cox or parametric models?Dear Stata Users, Normally, predicting survival curves within study time after Cox or any parametri…
Data collapseHi I have data on a number of lat & lon. Each lat & long combination has daily data on tem…
Subscribe to:
Post Comments (Atom)
0 Response to does "xtset" and "i.year", "i.country" are the same things?
Post a Comment