Announcement

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

  • Homoskedasticity Tests - Help!

    There is a homoskedasticity test for the tobit model as outlined in microeconometrics with stata by cameron and trivedi.
    However a certain command keeps giving error messages and it is not a problem of syntax:

    foreach var in $xlist {
    2. generate score 'var' = gres1*'var'
    3. }
    ' invalid name
    r(198);

    . foreach var in $xlist {
    2. generate score 'var' = gres1 * 'var'
    3. }
    ' invalid name
    r(198);

    Originally I used score'var' = gres1*'var' which also gave an error.

    Would you know why this has occurred and how to solve this?

    Many thanks

  • #2
    Without providing more information it is impossible to know. For sure you cannot leave a space between score and `var', but we don't know how you defined $xlist either. The space around the multiplication sign, *, doesn't matter.

    On another subject: The forum kindly asks you to use full names when posting, so ti would be very much appreciated if you would go to the contact form (bottom of the main page) and request to change your user name to your full name. It would also make users more likely to respond to your posts.
    Alfonso Sanchez-Penalver

    Comment


    • #3
      Are you using the right delimiters? It looks to me that you have '' in place of `'

      Comment


      • #4
        Ah good point Joao! I didn't catch that!
        Alfonso Sanchez-Penalver

        Comment

        Working...
        X