Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Applied Statistics Expert

Problem - Before proceeding with Problem 1 read Christopher Baum's lecture titled "A little bit of Stata programming goes a long way..."  It covers loops, macros, and other constructs presented in Stata Primer Lecture #3, as well as some other topics. I would suggest starting your work on the problem well before the due date.

Place all commands in a do file. As always, be sure to print out and hand in your do file and the resulting log file. 

Part 1: Use mutual fund performance dataset: PerformanceAF636.dta to answer questions in part 1.

a. Generate numeric month variable and use monthly format for the numeric month variable.

b. For each fund calculate cumulative monthly return from first observation available to the last observation available. Cumulate returns by adding them up. You must use appropriate egen function and foreach loop to accomplish this task.

c. Which fund had the best and which fund had the worst cumulative performance over time? You must use a set of Stata commands to answer this question. The answer should be displayed in your log file.

d. Now calculate monthly returns for S&P500. Use formula

RetS&P500,t = (S&P500t/S&P500t-1) - 1

to calculate monthly return for S&P500. Also note that the fund returns are reported as percent returns. Re-scale returns for each fund so that they are in decimal form. You must use foreach loop to re-scale fund returns.

e. Run a regression of performance (in decimal form) on S&P500 return for each fund. Use for each loop to accomplish this task. Make sure that prior to running each regression you display a message stating "This is a regression of PerformanceXXXX on S&P500 return". The statement should be different for each regression because the value of XXXX is fund ID and thus will depend on the fund. Which fund has the greatest coefficient (in absolute value) on S&P500 return?

f. Now reshape the dataset from wide to long form so that instead of multiple Performance variables you have only one Performance variable over time. This will also create a new variable identifying each fund.

Part 2: In this part you will analyze company financials using Compustat data. Use compustat_data.dta to answers questions in part 2.

a. Convert company identifier (gvkey) from string to numeric variable.

b. Create another numeric variable that contains only the year of observation.

c. Generate new dataset of summary statistics that contains annual averages for total assets, cash, ebit and total liabilities and annual medians for the same financial variables.

d. Compare mean and median for each variable in part (c). Use appropriate Stata command. Comment on the relationship between the mean and the median for each variable. You must use a local macro, for each loop, and an appropriate Stata command to accomplish this task.

Assignment Files -

https://www.dropbox.com/s/cwsck5p9kep5vor/Homework%20-%20Assignment%20Files.rar?dl=0

Applied Statistics, Statistics

  • Category:- Applied Statistics
  • Reference No.:- M92521949
  • Price:- $40

Guranteed 36 Hours Delivery, In Price:- $40

Have any Question?


Related Questions in Applied Statistics

Business analytics and statistics research reportthis

Business Analytics and Statistics Research Report This assignment is based on fictional data. You are creating a business report for the CEO of a retail company called, Athlete Panda. It must be professional in presentat ...

Assessment task -you become interested in the non-skeletal

Assessment Task - You become interested in the non-skeletal effects of vitamin D and review the literature. On the basis of your reading you find that there is some evidence to suggest that vitamin D deficiency is linked ...

Quantitative methods in health statistical analysis report

Quantitative Methods in Health Statistical Analysis Report - Question 1 - Are you a Lark or an Owl? Studies indicate that about 10% of us are morning people (Larks) while 20% are evening people (Owls) and the rest are no ...

Question 1 for the prostate data set fit a model with lpsa

Question 1. For the prostate data set, fit a model with lpsa as the response, and the other variables as predictors. (a) Suppose a new patient with the following values arrives: lcavol = 1.45000, lweight = 3.59801, age = ...

Business data analysis facts from figures assignment

BUSINESS DATA ANALYSIS: FACTS FROM FIGURES Assignment - Question 1 - Private capital expenditure for 12 successive quarters are presented in the following table: Quarter Millions     1 31,920 2 25,120 3 30,350 4 24,650 5 ...

Part a -question 1 - an analyst considers to test the order

PART A - Question 1 - An analyst considers to test the order of integration of some time series data. She decides to use the DF test. She estimates a regression of the form Δy t = μ + ψy t-1 + u t and obtains the estimat ...

Assessment - analytical reportobjectives - this assessment

Assessment - Analytical Report Objectives - This assessment addresses Unit Learning Outcomes: Discriminate the most appropriate descriptive and inferential statistics to use in a given health context, Analyse health data ...

Go to the website of ahrqs website titled advances in

Go to the website of AHRQ's website titled Advances in Patient Safety: From Research to Implementation located in the Webliography and select a specific research article. Bring back to the class, at minimum, the followin ...

Assignment - research topicpurpose the purpose of this task

Assignment - Research topic Purpose: The purpose of this task is to ensure you are progressing satisfactorily with your research project, and that you have clean, useable data to analyse for your final project report. Ta ...

Go to the institute for healthcare improvement ihi website

Go to the Institute for Healthcare Improvement (IHI) website for their Improvement Map (URL located in the Webliography). Select an improvement process of your choice. Present at least 3 quality paragraphs to the class a ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As