Hello!
I am new to Stata. I am using GDP per capita (GDPpc) and CO2 variables, which have large values, in my regression. Instead of transforming them into natural logarithms, I generate a unique number for each distinct GDPpc value within each year and country ID group.
In Stata, I use these codes:
Is this acceptable in academic work? Is this a common practice? I observe different results when I use natural logs compared to these variables.
I am new to Stata. I am using GDP per capita (GDPpc) and CO2 variables, which have large values, in my regression. Instead of transforming them into natural logarithms, I generate a unique number for each distinct GDPpc value within each year and country ID group.
In Stata, I use these codes:
Code:
bys year(id): gen lGDPpc = group(GDPpc) bys year(id): gen lCO2 = group(CO2)
Comment