Announcement

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

  • calculate the Standard deviation of Operating Cashflows, for the current and previous four years.

    Hi please

    i want to calculate

    Cashflow Volatility = Standard deviation of Operating Cashflows, for the current and previous four years.

    I'm not sure how can write the command to calculate the Standard deviation of Operating Cashflows, for the current and previous four years.

  • #2
    This is most easily done with the -rangestat- command, by Robert Picard, Nick Cox, and Roberto Ferrer. It is available from SSC.
    Code:
    rangestat (sd) wanted = operating_cashflow, interval(year -4 0)
    This code is for a single time series. If you have panel data and need to do this separately for each panel, just add -by(panel_variable)- to the end of the command.

    In all of this code, replace everything in italics by the actual names of the corresponding variables in your data set.

    Comment

    Working...
    X