Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can any wan solve it for stata assignment ? File Edit View Go Tools Window Help Staa Evercin.pdf (page Please submit a do file and

can any wan solve it for stata assignment ? image text in transcribed
File Edit View Go Tools Window Help Staa Evercin.pdf (page Please submit a do file and a log file that solves the three exercises below. 1. Using the dataset Kuwalt Financials.dta do the following. Create a variable for the ROE ratio. Using the variable nicon for Net Income and the variable ceq for Shareholder Equity. Call it roe. Create a new variable called roe_2d. This variable should take the values of the roe variable but it is rounded to two decimal places. Summarize roe by year using the bysort command. Comment on any trends in the last 5 years of the sample. Use egen to create a new variable which equals the median value of ROE for each firm across its years. Name this new variable firm_median_roe. Use egen to create a new variable which equals the median value of ROE for each year across firms. Name this new variable year_median_roe. Use egen to create a new variable which equals the total value of nicon across all the years for each firm. Name this new variable total_ni. Create a new variable short_name which is equal to the first 10 characters of the company name represented by the string variable conm. The variable gvkey is a string variable. Generate a new variable called gvkey_num which contains a numeric format of the variable gvkey. Bring the gvkey_num variable towards the front of the dataset. SKLADO 103 og de 0. RA MacBook Air Il 80 * A # 3 $ 4 % 5 & 7 8 9 6 2 I T T Y Y R F TAL File Edit View Go Tools Window Help Staa Evercin.pdf (page Please submit a do file and a log file that solves the three exercises below. 1. Using the dataset Kuwalt Financials.dta do the following. Create a variable for the ROE ratio. Using the variable nicon for Net Income and the variable ceq for Shareholder Equity. Call it roe. Create a new variable called roe_2d. This variable should take the values of the roe variable but it is rounded to two decimal places. Summarize roe by year using the bysort command. Comment on any trends in the last 5 years of the sample. Use egen to create a new variable which equals the median value of ROE for each firm across its years. Name this new variable firm_median_roe. Use egen to create a new variable which equals the median value of ROE for each year across firms. Name this new variable year_median_roe. Use egen to create a new variable which equals the total value of nicon across all the years for each firm. Name this new variable total_ni. Create a new variable short_name which is equal to the first 10 characters of the company name represented by the string variable conm. The variable gvkey is a string variable. Generate a new variable called gvkey_num which contains a numeric format of the variable gvkey. Bring the gvkey_num variable towards the front of the dataset. SKLADO 103 og de 0. RA MacBook Air Il 80 * A # 3 $ 4 % 5 & 7 8 9 6 2 I T T Y Y R F TAL

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial Innovation Regulation And Crises In History

Authors: Harold James

1st Edition

0367669528, 978-0367669522

More Books

Students also viewed these Finance questions

Question

What bases of power did Bill Agee have? Did he acquire any more?

Answered: 1 week ago