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
assign variable label to variable nameHi I have a dataset that has some variables, say, X1-X10. The corresponding variable labels are 2018…
Create new variables using two categorical variablesI have three variables gender sector and wf. Gender and sector are categorical variables, where gend…
urlencoding() usageHi all, Anyone understand the usage of urlencoding()? string scalar urlencode(string scalar s ,…
required the sampled required the sampled firms to have at least five observations in the data setplease i required the sampled required the sampled firms to have at least five observations in the d…
What should I do to achieve the following result.? Code: * Example generated by -dataex-. For more info, type help dataex clear input str3 code str29 …
Subscribe to:
Post Comments (Atom)
0 Response to Standardized variables
Post a Comment