Hi,
I have panel data and defined my variables accordingly:
xtset id q_date,q
if i want to standardize a variable by taking (v1-mean of v1)/(standard deviation of v1), can i do it as :
egen zv1=std(v1) ?? or should i standardize v1 for for each company(id)? in otherwords do we standardize at the aggregate level for all companies or for each company alone? if it is the latter how can i modify the codes?
thanks
Related Posts with Standardized variables
Problem with ado update: host not foundI just got the following Mata error message when running ado update: Code: . ado update note: ado u…
stack data?Dear All, I have this data set. Code: clear input int A str12 B str9(C D) str18 E str9 F str15 G st…
How to fix error "outcome does not vary" for OR and logistic regressionDear all, I have been struggling to solve this. I imported data from excel file. And have a variabl…
estimates of variances in esttab for all the levelsI'm running a multilevel mixed model with: eststo: xtmixed y x1 x2 || country: || household:, reml e…
creating a matrix in stata helpHello Stata Experts this forum has been helpful to me thank you so much i`m back with another issue …
Subscribe to:
Post Comments (Atom)
0 Response to Standardized variables
Post a Comment