Announcement

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

  • Generate time value with year and quarter and xtset

    I have 3 variable
    variable year with value from 2000-2010
    variable quarter with value from 1-4
    variable country with the name of the country
    i use the command like this
    Code:
    gen time = yq(year,quarter)
    format time %tq
    encode country, gen(name)
    xtset name time

    correct, right ?

  • #2
    Seems fine on this evidence.

    Comment


    • #3
      Originally posted by Nick Cox View Post
      Seems fine on this evidence.
      because its works fine with xtreg, fe ,.... that I thinks i am right, but im searching in the forum and havenot seen anyone generate the time value like I do

      Comment


      • #4
        I have seen that often -- and recommended it myself many, many times. I can't comment on your modelling choice. As you're talking about assignments for a course, you are in a grey area here, as Carlo Lazzaro flagged separately. . I'll answer peripheral questions like this, however.

        Comment


        • #5
          Originally posted by Nick Cox View Post
          I have seen that often -- and recommended it myself many, many times. I can't comment on your modelling choice. As you're talking about assignments for a course, you are in a grey area here, as Carlo Lazzaro flagged separately. . I'll answer peripheral questions like this, however.
          No, i dont ask about the model,
          Im just asking with my code, stata would recognized my data as data panel, right ?

          Comment


          • #6
            Same question, same answer: Yes.

            Comment

            Working...
            X