Announcement

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

  • Error r(430); after svy logistic

    After executing this code I'm getting the following:

    svy linearized : logistic dv IBM demo if r1d ==1 & r1femage80

    convergence not achieved
    convergence not achieved
    an error occurred when svy executed logistic
    r(430);

    I have tried for this other variables: r1femage81 r1malege80 r1malege81 replacing r1femage80 and it run perfectly!!

    this is the general code for each variable:

    generate r1femage80 = r1dg==2 & r1ageme80 ==1
    generate r1femage81 = r1dg==2 & r1agema80 ==1
    generate r1malege80 = r1dg==1 & r1ageme80 ==1
    generate r1malege81 = r1dg==1 & r1agema80 ==1

    what might be wrong?

    thank you all for your input!

  • #2
    Code:
    [P]     error . . . . . . . . . . . . . . . . . . . . . . . .  Return code 430
            convergence not achieved;
            You have estimated a maximum likelihood model, and Stata's
            maximization procedure failed to converge to a solution;
            see [R] maximize.  Check if the model is identified.
    [I got this by typing error 430 at my Stata prompt and then clicking on the hyperlinked "r(430)"] Note the last sentence. Perhaps you have no observations or perfect separation for the particular group you ask about. I would do some checking of patterns within your data as follows and check whether there are empty rows/cells
    Code:
    tabulate dv r1femage80
    tabulate dv r1femage81
    tabulate dv r1malege80
    tabulate dv r1malege81
    ... and similarly also taking account of restricting cases to those with "r1d == 1".

    Have you read the Manual entries and related literature about the use of the if qualifier in conjunction with svy? You appear to be wanting estimates for subpopulations, in which case you should be using the subpopulation() option to svy -- svy_options. The general format (see help svy) is:
    Code:
     svy [vcetype] [,  svy_options eform_option] : command
    So, you would have code like:
    Code:
    svy, subpopulation(if r1d ==1 & r1femage80): logistic dv IBM demo
    I think that your "linearized" is redundant in this case (it's the default).

    Also, please read the Forum FAQ, especially the sections about the use of CODE delimiters to display code and output in a legible fashion.

    Comment


    • #3
      Dear Stephen,
      Thank you for your precise and helpful comments I have implemented your changes,
      Thanks again and all the best,

      Comment


      • #4
        Dear statalist

        I am facing a similar problem with my technical efficiency model.

        I estimated using the half normal and exponential specifications. with the half normal model, everything goes fine and the results are very meaningful. However with the exponential it takes like forever with about 16000 iterations. In the end, I get the r430 signal with results with a lot of insisgnificant variables.

        Does this point to something?

        Comment

        Working...
        X