Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Calculating Tax Rate Volatility

    Hello everyone,

    I am currently working on my seminar paper for my masters program. For the purpose of this paper I have to work empirically for the first time and therefore collecting my first experiences with Stata. As part of my work I have to calculate the volatility of Cash Effective Tax Rates (VolCETR). I want to calculate the VolCETR via the following formula:
    (CETR(t) - CETR(t-1)) / CETR(t-1)
    I have around 5000 values of CETR for multiple firms and over multiple years.

    Now my problem is that I am not sure how to create a commond that indicates to Stata to use a value of CETR from the previous period, i.e. t-1.
    Or is the calculation of volatilities not possible in that manner and I need a different approach?

    Hopefully, my problem became clear and one of you is kind enough to help me.

    Kind regards,
    Lucas

  • #2
    Welcome to Statalist.

    So what you describe - values of CETR for multiple firms and over multiple years - is panel data, and you will want to start by reading the introductory material in the Stata Longitudinal-Data/Panel-Data Reference Manual PDF included in your Stata installation and accessible from Stata's Help menu.

    We will assume your data includes variables that identify the firm and the year - we will call those variables FIRM and YEAR for purposes of this example. Then you will start by describing your longitudinal data to Stata
    Code:
    xtset firm year
    after which you can calculate your formula with
    Code:
    generate VolCETR = (CETR-L.CETR)/L.CETR
    You will want to read the help files for Stata's time series variable notation
    Code:
    help tsvarlist
    and the documentation for xtset, which you can find in the manual mentioned above, or an abbreviated version with
    Code:
    help xtset
    Finally, to make the most effective use of Statalist, please take a few moments to review the Statalist FAQ linked to from the top of the page, as well as from the Advice on Posting link on the page you used to create your post. Note especially sections 9-12 on how to best pose your question. It's particularly helpful to copy commands and output from your Stata Results window and paste them into your Statalist post using code delimiters [CODE] and [/CODE], and to use the dataex command to provide sample data, as described in section 12 of the FAQ.





    Comment

    Working...
    X