Announcement

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

  • Collapse function that calculates product

    Is there a function that does what the collapse function does but calculates the product of the values for the selected variable?

    I need it to calculate the yearly return out of monthly returns.

    Thank you very much in advance!

  • #2
    collapse is a command, not a function. You can take logarithms, collapse to sums and then exponentiate.

    Please note our strong preference for full real names as identifiers.

    Comment

    Working...
    X