Hello everyone,
As the question already suggests, I have a panel dataset that has country-level macro data, and I would like to compute a new variable coined 'US Interest Rate Spread.' Simply put US Interest Rate Spread = Other Country's Interest Rate - Interest Rate in the United States. Is it possible to generate such a variable through STATA commands?
Related Posts with How do you create a new variable that is based on data from a variable?
stcrreg command get subhazard ratio Code: use http://www.stata-press.com/data/r13/hypoxia, clear set seed 134 stset dftime, failure(fai…
Dealing with zerosI have lots of zeros in both my dependent and independent variables. One way that I was dealing wit…
Create laggingsHello, I have a dataset of 1,791 firm-year observations. Now, I would like - for each firm-year obs…
Appropriate regression modelMy dataset consists of an amount of lubricant added to a process at various times. The lubricant is …
reshaping to long with a string IDI want to reshape my data from wide to long. I implement: Code: reshape long MortgageloansthUSD2010…
Subscribe to:
Post Comments (Atom)
0 Response to How do you create a new variable that is based on data from a variable?
Post a Comment