Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65553

Normalizig Data

$
0
0
Hi everyone,

I am trying to normalize my data to run panel regression. So far I have tried to:

1. transform the data to log form

2. normalize data as a panel country using the following commands
egen min_x1=min(x1)
egen max_x1=max(x1)
gen normalx1= (x1-min_x1)/(max_x1-min_x1)

3. normalize data by country and by variable using
su x1, meanonly
gen normal_x1=(x1-r(min))/(r(max)-r(min))

3. smoothing the data using tssmooth and also HP filter

However my data for all variablea is still skewed no matter what i tried. I have checked it using histogram frequency graphs, density plots etc.

I would appreciate some help on this.

Thank you

Viewing all articles
Browse latest Browse all 65553

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>