Announcement

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

  • Set obs with scientific notation

    Code:
    clear
    set obs 1000
    Works. But:
    Code:
    clear
    set obs 1e3
    returns the error "observation number out of range."
    I want to set the number of observations to, say, 100 million or 1 billion without having to count all the zeros.

  • #2
    You need a force evaluation:

    Code:
    clear
    set obs `=1e3'

    Comment


    • #3
      Code:
      . scalar nobs = 1e8
      
      . set obs `=nobs'

      Comment


      • #4
        Brilliant. Thank you!

        Comment

        Working...
        X