Announcement

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

  • Stata command: Scalar

    Hey Guys,

    i am a master's degree student in finance. For my master thesis i model the value at risk. For this, i need a create a scalar. For example i have a time series with 1000 observations with intervals of 250 observations. To model the value at risk, i need the volatility for the day n+1 (this means for the day 251). Then from 2-251 and i need the volatility of 252 and so on. Can u help me by this issue? Or is there another possibility?

    Thank you in advance for your help.

    King regards
    Patrick Royak

  • #2
    Many threads here on rolling calculations for such data. Did you search the forum for mentions of volatility?

    (What you want sounds like a variable to me, not a scalar.)

    Comment


    • #3
      Originally posted by Nick Cox View Post
      Many threads here on rolling calculations for such data. Did you search the forum for mentions of volatility?

      (What you want sounds like a variable to me, not a scalar.)
      Thank you for your hint. I created a new variable under a condition and it worked.

      Comment

      Working...
      X