Announcement

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

  • lpoly for panel data

    How can I obtain polynomial trend for panel data (for each group separately)?
    Thanks

  • #2
    Maybe by using an if expression? Assuming based upon your title that you want to use lpoly to "obtain polynomial trend", then something like
    Code:
    quietly levelsof group, local(groups)
    pause on
    foreach group of local groups {
        lpoly response time if group == `group' // assumes group is numeric, use "`group'" otherwise
        pause
    }

    Comment

    Working...
    X