Announcement

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

  • Help Can't See Generated Variable Observations in Editor or Browser

    Hi,

    So I had this issue before but don't remember how I fixed it. Stata essentially shows 0 observations at all times. With the exception of opening a .do file or directly from .dta file; when I open Stata 15 IC on my Mac, I'll type any simple command "gen t = _n" or simply anything that calls for generating a new variable. The new variable is created in the list of variables and I get no error. But when I go to Data Browser/Editor the matrix window supposed to show the variables observations shows just blank empty boxes. It's the same with any command: "gen tm = tm(1991m1) + _n-1" or "gen test = 5". No matter the command the browser view shows a spreadsheet of zero observations and no numbers of any sort. I've tried setting the memory/ changing obs to different values but that doesn't seem to solve it. Any and all help with this persistent but annoying issue would be fantastic.

    Best,
    Ali

  • #2
    I'm not sure I understand your question...
    But yeah, when you just open the Stata there are zero observations by default. And if you generate any variable it will be created but with zero observations.

    You can input observations if that's what you want, and play with them.
    Code:
    input long newvar
    1
    2
    3
    4
    5
    end
    DR

    Comment

    Working...
    X