Announcement

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

  • why might I be unable to use the options leverage and rstudent

    previously I recall using the options leverage and r student, as in

    predict hat, leverage

    and I never had any problems.

    but now I get the following error
    option leverage not allowed
    r(198);



    same thing with student option

    At first I thought I might need to install a package, but I have not found anything online.
    I am using stata 12.


    Thanks!

  • #2
    What model are you estimating before you issue the -predict- command?
    Stata/MP 14.1 (64-bit x86-64)
    Revision 19 May 2016
    Win 8.1

    Comment


    • #3
      Sorry, I just saw this reply and did not get a notification of it!

      Here is the model before, logistic with continuous variables, binary, and indicator variables
      xi: logistic visa numde i.geotravex educ schpc9foreig smile paeduc ifopim if good3==1

      fitstat
      I run It also here with ols regression of continuous on a continuous
      reg lsal lwealthwosqm, beta





      Comment


      • #4
        leverage is not a post estimation option of predict for logistic or logit, although it is for regress. However, hat is a synonym for leverage in regress and is available after both logit and logistic. See: help logistic postestimation, help logit postestimation, help regress postestimation for available options with predict. Also, there is no need to use the -xi:- prefix for factor variables (and may not play well with some post-estimation commands and user contributed programs). See help fvvarlist. Instead just write:
        Code:
        logistic visa numde i.geotravex educ...
        Stata/MP 14.1 (64-bit x86-64)
        Revision 19 May 2016
        Win 8.1

        Comment

        Working...
        X