I want to standardize my independent variable before running the regression. I have a panel data set and I am sure that I want to standardize cross-sectionally.
Now I am unsure whether to standardize across the whole data set i.e. standardize across all different entities and across time by simply doing
Code:
egen std_VAR = std(VAR)
Code:
by date: egen VAR_mean = mean(VAR) by date: egen VAR_sd = sd(VAR) by date: gen VAR_std = (VAR-VAR_mean)/VAR_sd
Thank you very much!
0 Response to Panel Data Standardization
Post a Comment