Announcement

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

  • A Question about Analyzing Shool-nested Panel Data

    Hi, I have a question about analyzing school-nested panel data. I am using education panel data to examine the relationship between students' test scores and school SES. The school SES is generated by averaging the family SES of students at this school. The dataset has two waves, including the 2014 wave and the 2015 wave. Given that students' family SES cannot change a lot within one year, I think the fixed-effect model doesn't fit my situation. How should I investigate this dataset properly with Stata?

    My current codes in Stata:

    xtmixed logstts schses stses stexpect i.wave || schids: vce(r)
    "logstts" is the log of student's test scores. "stses" is student's family SES. "stexpect" is student's educational expectations.

    I'm also wondering whether using the random-effect model can be helpful? Like:

    mi xtset ids wave
    xtreg logstts schses stses stexpect, re vce(cl schids)
    "ids" is student's unique id in this dataset.

    Thank you!
    Last edited by Minda Tan; 20 Mar 2022, 03:20. Reason: HLM

  • #2
    Minda:
    with two waves of data ony, I suspect that -re- will not perform well either.
    Actually, as students re obviously nested withun school, -xtmixed- (that was superseeded by -mixed- from Stata 13 onwards) is the way to go.
    You can also consider -xtreg, re mle-.
    Last edited by Carlo Lazzaro; 20 Mar 2022, 04:42.
    Kind regards,
    Carlo
    (StataNow 18.5)

    Comment


    • #3
      Originally posted by Carlo Lazzaro View Post
      Minda:
      with two waves of data ony, I suspect that -re- will not perform well either.
      Actually, as students re obviously nested withun school, -xtmixed- (that was superseeded by -mixed- from Stata 13 onwards) is the way to go.
      You can also consider -xtreg, re mle-.
      Hi Carlo! Thank you for the helpful advice. I will try it immediately!

      Comment


      • #4
        Hi Carlo. I have another quick question. Do you think "Linear regression with multiple fixed effects" can solve my problem?

        reghdfe logstts schses stses stexpect i.wave, absorb(schids)

        Comment


        • #5
          Minda:
          it may be an option if you're interested in within-panel variation only.
          That said, please note that -mixed- is more similar to -re-.
          Kind regards,
          Carlo
          (StataNow 18.5)

          Comment


          • #6
            Originally posted by Carlo Lazzaro View Post
            Minda:
            it may be an option if you're interested in within-panel variation only.
            That said, please note that -mixed- is more similar to -re-.
            That's what I want! Thank you so much!

            Comment

            Working...
            X