I have data include varables ( year , Event_Type , Loss_Amount__USD )
I want state to to sort the data by year , and with the year table I need the total of Loss_Amount__USD within that year for each year soeritly
I tried to do : bysort Settlement_Year: tab BIS_Event_Type___Level_1 , Total Loss_Amount__USD__Millions_
but that didn't work
Array
my data looks like :
Array
Related Posts with how to use bysort with function total and tab
how to gen variable with two valuehow to Dividend dummy is a variable set to one if the firm paid a dividend in the year, and set to 0…
Help with the standarization processdear community I have 3 variables all measuring something for an extensive set fo countries. One of…
Stuck while calculating moving medianHello, Currently, I am writing my thesis, in which I have to calculate the moving median of the ROE…
No data is running with adding "capture" to my code, but there is no new error message (this code works for my elder collegue)Dear, Sorry in advance if I'm maybe not using the right STATA-language! I'm using STATA 16.1 on Wi…
how to gen variable with two valuehow to Dividend dummy is a variable set to one if the firm paid a dividend in the year, and set to 0…
Subscribe to:
Post Comments (Atom)
0 Response to how to use bysort with function total and tab
Post a Comment