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
nested loopsin the case that I want to run the analysis of a group of variables by quintiles and considering als…
computing skewness and kurtosis of a binary variable with two mutually exclusive optionsHi there, This is my first post on this forum. I am rather confused at a question I have been assign…
Generating new variable using hospital codes of multiple diagnosisHello, I have a dataset with patient ids. Each patient is in the dataset multiple times and have mu…
Creating loop on date variableHello, My date variable (x11) is in the format:%td. I am trying to filter out a sub sample of my da…
Problem with highly skewed independent variables and many zerosDear members, I have a binary dependent variable and want to estimate either a logistic regression …
Subscribe to:
Post Comments (Atom)
0 Response to Standardized variables
Post a Comment